次の方法で共有


Graph.Merge Method

Definition

Overloads

Merge(Graph)

Merge all new nodes and links from the given graph into this graph

Merge(IEnumerable<GraphLink>)

Merge all of the links from the given link list into this graph

Merge(IEnumerable<GraphNode>)

Merge all of the nodes from the given node list into this graph

Merge(IEnumerable<GraphObject>)

Merge all new nodes and links from the given list of graph objects into this graph

Merge(IEnumerable<GraphConditionalStyle>)

Merge all the styles from the given list.

Merge(Graph)

Merge all new nodes and links from the given graph into this graph

public:
 bool Merge(Microsoft::VisualStudio::GraphModel::Graph ^ other);
public bool Merge (Microsoft.VisualStudio.GraphModel.Graph other);
override this.Merge : Microsoft.VisualStudio.GraphModel.Graph -> bool
Public Function Merge (other As Graph) As Boolean

Parameters

other
Graph

The Graph to use as a source for merging

Returns

True if the graph was changed, otherwise false

Applies to

Merge(IEnumerable<GraphLink>)

Merge all of the links from the given link list into this graph

public:
 bool Merge(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphLink ^> ^ other);
public bool Merge (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphLink> other);
override this.Merge : seq<Microsoft.VisualStudio.GraphModel.GraphLink> -> bool
Public Function Merge (other As IEnumerable(Of GraphLink)) As Boolean

Parameters

other
IEnumerable<GraphLink>

List of links to merge in

Returns

True if the graph was change, otherwise false

Applies to

Merge(IEnumerable<GraphNode>)

Merge all of the nodes from the given node list into this graph

public:
 bool Merge(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ other);
public bool Merge (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> other);
override this.Merge : seq<Microsoft.VisualStudio.GraphModel.GraphNode> -> bool
Public Function Merge (other As IEnumerable(Of GraphNode)) As Boolean

Parameters

other
IEnumerable<GraphNode>

List of nodes to merge in

Returns

True if the graph was change, otherwise false

Applies to

Merge(IEnumerable<GraphObject>)

Merge all new nodes and links from the given list of graph objects into this graph

public:
 bool Merge(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphObject ^> ^ other);
public bool Merge (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphObject> other);
override this.Merge : seq<Microsoft.VisualStudio.GraphModel.GraphObject> -> bool
Public Function Merge (other As IEnumerable(Of GraphObject)) As Boolean

Parameters

other
IEnumerable<GraphObject>

The list of graph objects to use as a source for merging

Returns

True if the graph was changed, otherwise false

Applies to

Merge(IEnumerable<GraphConditionalStyle>)

Merge all the styles from the given list.

public:
 bool Merge(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::Styles::GraphConditionalStyle ^> ^ styles);
public bool Merge (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle> styles);
override this.Merge : seq<Microsoft.VisualStudio.GraphModel.Styles.GraphConditionalStyle> -> bool
Public Function Merge (styles As IEnumerable(Of GraphConditionalStyle)) As Boolean

Parameters

styles
IEnumerable<GraphConditionalStyle>

The styles to merge into this graph

Returns

True if there were any styles to merge, false otherwise

Applies to