Share via


GraphDataObject.Create Method

Definition

Overloads

Create(IEnumerable<GraphNode>, Guid, Int32)

Create an IDataObject for exchanging the selected nodes (and all their descendants).

Create(IEnumerable<GraphNode>, Guid, Int32, IDictionary<String,Object>)

Create an IDataObject for exchanging the selected nodes (and all their descendants).

Create(IEnumerable<GraphNode>, Guid, Int32, DataFormat[])

Create an IDataObject for exchanging the selected nodes (and all their descendants).

Create(IEnumerable<GraphNode>, Guid, Int32, DataFormat[], IDictionary<String,Object>)

Create an IDataObject for exchanging the selected nodes (and all their descendants).

Create(IEnumerable<GraphNode>, Guid, Int32)

Create an IDataObject for exchanging the selected nodes (and all their descendants).

public:
 static System::Windows::IDataObject ^ Create(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ selection, Guid sourceGraphId, int levels);
public static System.Windows.IDataObject Create (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> selection, Guid sourceGraphId, int levels);
static member Create : seq<Microsoft.VisualStudio.GraphModel.GraphNode> * Guid * int -> System.Windows.IDataObject
Public Shared Function Create (selection As IEnumerable(Of GraphNode), sourceGraphId As Guid, levels As Integer) As IDataObject

Parameters

selection
IEnumerable<GraphNode>

The nodes to include (plus all their descendants)

sourceGraphId
Guid

The unique id of the source Graph object

levels
Int32

The number of links away from each selected object to include in the drag/drop subset. Specifying something greater than zero gives the drop target enough information to know how to connect up the target graph to the dropped nodes

Returns

An IDataObject or null if the selection is empty

Applies to

Create(IEnumerable<GraphNode>, Guid, Int32, IDictionary<String,Object>)

Create an IDataObject for exchanging the selected nodes (and all their descendants).

public:
 static System::Windows::IDataObject ^ Create(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ selection, Guid sourceGraphId, int levels, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ optionalAttributes);
public static System.Windows.IDataObject Create (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> selection, Guid sourceGraphId, int levels, System.Collections.Generic.IDictionary<string,object> optionalAttributes);
static member Create : seq<Microsoft.VisualStudio.GraphModel.GraphNode> * Guid * int * System.Collections.Generic.IDictionary<string, obj> -> System.Windows.IDataObject
Public Shared Function Create (selection As IEnumerable(Of GraphNode), sourceGraphId As Guid, levels As Integer, optionalAttributes As IDictionary(Of String, Object)) As IDataObject

Parameters

selection
IEnumerable<GraphNode>

The nodes to include (plus all their descendants)

sourceGraphId
Guid

The unique id of the source Graph object

levels
Int32

The number of links away from each selected object to include in the drag/drop subset. Specifying something greater than zero gives the drop target enough information to know how to connect up the target graph to the dropped nodes

optionalAttributes
IDictionary<String,Object>

Option dgml attributes that will be persisted along with the selected nodes

Returns

An IDataObject or null if the selection is empty

Applies to

Create(IEnumerable<GraphNode>, Guid, Int32, DataFormat[])

Create an IDataObject for exchanging the selected nodes (and all their descendants).

public:
 static System::Windows::IDataObject ^ Create(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ selection, Guid sourceGraphId, int levels, cli::array <System::Windows::DataFormat ^> ^ formats);
public static System.Windows.IDataObject Create (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> selection, Guid sourceGraphId, int levels, System.Windows.DataFormat[] formats);
static member Create : seq<Microsoft.VisualStudio.GraphModel.GraphNode> * Guid * int * System.Windows.DataFormat[] -> System.Windows.IDataObject
Public Shared Function Create (selection As IEnumerable(Of GraphNode), sourceGraphId As Guid, levels As Integer, formats As DataFormat()) As IDataObject

Parameters

selection
IEnumerable<GraphNode>

The nodes to include (plus all their descendants)

sourceGraphId
Guid

The unique id of the source Graph object

levels
Int32

The number of links away from each selected object to include in the drag/drop subset. Specifying something greater than zero gives the drop target enough information to know how to connect up the target graph to the dropped nodes

formats
DataFormat[]

The DGML formats to publish in the IDataObject

Returns

An IDataObject or null if the selection is empty

Applies to

Create(IEnumerable<GraphNode>, Guid, Int32, DataFormat[], IDictionary<String,Object>)

Create an IDataObject for exchanging the selected nodes (and all their descendants).

public:
 static System::Windows::IDataObject ^ Create(System::Collections::Generic::IEnumerable<Microsoft::VisualStudio::GraphModel::GraphNode ^> ^ selection, Guid sourceGraphId, int levels, cli::array <System::Windows::DataFormat ^> ^ formats, System::Collections::Generic::IDictionary<System::String ^, System::Object ^> ^ optionalGraphProperties);
public static System.Windows.IDataObject Create (System.Collections.Generic.IEnumerable<Microsoft.VisualStudio.GraphModel.GraphNode> selection, Guid sourceGraphId, int levels, System.Windows.DataFormat[] formats, System.Collections.Generic.IDictionary<string,object> optionalGraphProperties);
static member Create : seq<Microsoft.VisualStudio.GraphModel.GraphNode> * Guid * int * System.Windows.DataFormat[] * System.Collections.Generic.IDictionary<string, obj> -> System.Windows.IDataObject
Public Shared Function Create (selection As IEnumerable(Of GraphNode), sourceGraphId As Guid, levels As Integer, formats As DataFormat(), optionalGraphProperties As IDictionary(Of String, Object)) As IDataObject

Parameters

selection
IEnumerable<GraphNode>

The nodes to include (plus all their descendants)

sourceGraphId
Guid

The unique id of the source Graph object.

levels
Int32

The number of links away from each selected object to include in the drag/drop subset. Specifying something greater than zero gives the drop target enough information to know how to connect up the target graph to the dropped nodes

formats
DataFormat[]

The DGML formats to publish in the IDataObject

optionalGraphProperties
IDictionary<String,Object>

Option dgml attributes that will be persisted along with the selected nodes

Returns

An IDataObject or null if the selection is empty

Applies to