Class ComponentView
A component view that shows components inside a container and their direct neighbours.
[DataContract]
public sealed class ComponentView : StaticView
- Inheritance
-
ComponentView
- Inherited Members
Properties
Container
References the container whose components are in scope for this view.
public Container Container { get; set; }
Property Value
ContainerId
The ID of the container this view is associated with.
[DataMember(Name = "containerId", EmitDefaultValue = false)]
public string ContainerId { get; set; }
Property Value
ExternalContainerBoundariesVisible
Determines whether container boundaries should be visible for "external" components (those outside the container in scope).
[DataMember(Name = "externalContainerBoundariesVisible", EmitDefaultValue = false)]
public bool? ExternalContainerBoundariesVisible { get; set; }
Property Value
- bool?
Name
Returns the default name shown for this component view.
public override string Name { get; }
Property Value
Methods
Add(Component)
Adds a component to the view.
public void Add(Component component)
Parameters
componentComponentThe component to add.
Add(Container)
Adds a container to the component view.
public void Add(Container container)
Parameters
containerContainerThe container to add.
AddAllComponents()
Adds every component defined inside the scoped container.
public void AddAllComponents()
AddAllContainers()
Adds every container in the scoped software system except the container already in scope.
public void AddAllContainers()
AddAllElements()
Adds all people, software systems, containers, and components permitted by this view.
public override void AddAllElements()
AddDefaultElements()
Adds the default set of elements to this view.
public override void AddDefaultElements()
AddNearestNeighbours(Element)
Adds people, software systems, containers and components that are directly related to the given element.
public override void AddNearestNeighbours(Element element)
Parameters
elementElement
CheckElementCanBeAdded(Element)
protected override void CheckElementCanBeAdded(Element element)
Parameters
elementElement
Remove(Component)
Removes a component from the view.
public void Remove(Component component)
Parameters
componentComponentThe component to remove.
Remove(Container)
Removes a container from the component view.
public void Remove(Container container)
Parameters
containerContainerThe container to remove.