GraphConditionalStyleCollection.Add Method
Adds the specified style to the collection. If the given style belongs to a different graph, it clones it and returns the new style.
Namespace: Microsoft.VisualStudio.GraphModel.Styles
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Sub Add ( _
item As GraphConditionalStyle _
)
public void Add(
GraphConditionalStyle item
)
public:
virtual void Add(
GraphConditionalStyle^ item
) sealed
abstract Add :
item:GraphConditionalStyle -> unit
override Add :
item:GraphConditionalStyle -> unit
public final function Add(
item : GraphConditionalStyle
)
Parameters
item
Type: Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyleThe node to add.
Implements
ICollection.Add(UTP)
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown if node is null. |
InvalidOperationException | Thrown if the unique node id already exists. |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.