Dela via


GraphConditionalStyleCollection.MergeOrInsert Method

Adds this style if one does not already exist with the same target type and conditions.

If one exists with the same target type and conditions, merge the setters.

Namespace:  Microsoft.VisualStudio.GraphModel.Styles
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

Syntax

'Declaration
Public Sub MergeOrInsert ( _
    style As GraphConditionalStyle, _
    index As Integer _
)
public void MergeOrInsert(
    GraphConditionalStyle style,
    int index
)
public:
void MergeOrInsert(
    GraphConditionalStyle^ style, 
    int index
)
member MergeOrInsert : 
        style:GraphConditionalStyle * 
        index:int -> unit
public function MergeOrInsert(
    style : GraphConditionalStyle, 
    index : int
)

Parameters

  • index
    Type: Int32

    The index to insert the new style if it does not already exist.

.NET Framework Security

See Also

Reference

GraphConditionalStyleCollection Class

Microsoft.VisualStudio.GraphModel.Styles Namespace