Graph.Merge 方法

定义

重载

Merge(Graph)

将给定图形中的所有新节点和链接合并到此关系图中

Merge(IEnumerable<GraphLink>)

将给定链接列表中的所有链接合并到此关系图中

Merge(IEnumerable<GraphNode>)

将给定节点列表中的所有节点合并到此关系图中

Merge(IEnumerable<GraphObject>)

将给定图形对象列表中的所有新节点和链接合并到此关系图中

Merge(IEnumerable<GraphConditionalStyle>)

合并给定列表中的所有样式。

Merge(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

参数

other
Graph

用作合并源的关系图

返回

Boolean

如果更改了关系图,则为 True; 否则为 false。

适用于

Merge(IEnumerable<GraphLink>)

将给定链接列表中的所有链接合并到此关系图中

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

参数

other
IEnumerable<GraphLink>

要合并的链接的列表

返回

Boolean

如果关系图发生了更改,则为 True; 否则为 false。

适用于

Merge(IEnumerable<GraphNode>)

将给定节点列表中的所有节点合并到此关系图中

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

参数

other
IEnumerable<GraphNode>

要合并的节点列表

返回

Boolean

如果关系图发生了更改,则为 True; 否则为 false。

适用于

Merge(IEnumerable<GraphObject>)

将给定图形对象列表中的所有新节点和链接合并到此关系图中

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

参数

other
IEnumerable<GraphObject>

用作合并源的图形对象的列表

返回

Boolean

如果更改了关系图,则为 True; 否则为 false。

适用于

Merge(IEnumerable<GraphConditionalStyle>)

合并给定列表中的所有样式。

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

参数

styles
IEnumerable<GraphConditionalStyle>

要合并到此关系图中的样式

返回

Boolean

如果有任何要合并的样式,则为 True,否则为 false

适用于