Dela via


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

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

See Also

Reference

GraphConditionalStyleCollection Class

Microsoft.VisualStudio.GraphModel.Styles Namespace