Partager via


Graph.ImportSubset Method

Definition

Overloads

ImportSubset(GraphNode, Boolean, Int32)

Clone the given node and it's properties and the given number of levels of links and all the nodes those links point to and import all these new nodes and links into this graph. If levels is zero then no links are copied. If levels is 1 then it copies one level of links and all the nodes they point to.

ImportSubset(IEnumerable<GraphNode>, Boolean, Int32)

Clone all the nodes and the given number of levels of links away from those nodes.

ImportSubset(GraphNode, Boolean, Int32)

Clone the given node and it's properties and the given number of levels of links and all the nodes those links point to and import all these new nodes and links into this graph. If levels is zero then no links are copied. If levels is 1 then it copies one level of links and all the nodes they point to.

public:
 Microsoft::VisualStudio::GraphModel::GraphNode ^ ImportSubset(Microsoft::VisualStudio::GraphModel::GraphNode ^ node, bool hideOtherNodes, int levels);
public Microsoft.VisualStudio.GraphModel.GraphNode ImportSubset (Microsoft.VisualStudio.GraphModel.GraphNode node, bool hideOtherNodes, int levels);
member this.ImportSubset : Microsoft.VisualStudio.GraphModel.GraphNode * bool * int -> Microsoft.VisualStudio.GraphModel.GraphNode
Public Function ImportSubset (node As GraphNode, hideOtherNodes As Boolean, levels As Integer) As GraphNode

Parameters

node
GraphNode

The Node to clone

hideOtherNodes
Boolean

Flag indicating whether to set Visibility to Hidden on any secondary nodes that are copied by this cloning process

levels
Int32

How many more levels of indirection to include

Returns

Applies to

ImportSubset(IEnumerable<GraphNode>, Boolean, Int32)

Clone all the nodes and the given number of levels of links away from those nodes.

public:
 void ImportSubset(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ nodes, bool hideOtherNodes, int levels);
public void ImportSubset (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> nodes, bool hideOtherNodes, int levels);
member this.ImportSubset : seq<Microsoft.VisualStudio.GraphModel.GraphNode> * bool * int -> unit
Public Sub ImportSubset (nodes As IEnumerable(Of GraphNode), hideOtherNodes As Boolean, levels As Integer)

Parameters

nodes
IEnumerable<GraphNode>

The list of nodes to clone

hideOtherNodes
Boolean

Flag indicating whether to set Visibility to Hidden on any secondary nodes that are copied by this cloning process

levels
Int32

How many more levels of indirection to include

Applies to