Share via


GraphConditionalStyleCollection.Add(GraphConditionalStyle) Method

Definition

Adds the specified style to the collection. If the given style belongs to a different graph then it clones it and returns the new style.

public:
 virtual void Add(Microsoft::VisualStudio::GraphModel::Styles::GraphConditionalStyle ^ item);
public void Add (Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle item);
abstract member Add : Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle -> unit
override this.Add : Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle -> unit
Public Sub Add (item As GraphConditionalStyle)

Parameters

item
GraphConditionalStyle

Node to add

Implements

Exceptions

thrown if node is null

thrown if the unique node id already exists

Applies to