GraphDataObject::Create Method (IEnumerable<GraphNode^>^, Guid, Int32, array<DataFormat^>^)

 

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

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

public:
static IDataObject^ Create(
	IEnumerable<GraphNode^>^ selection,
	Guid sourceGraphId,
	int levels,
	array<DataFormat^>^ formats
)

Parameters

selection
Type: System.Collections.Generic::IEnumerable<GraphNode^>^

The nodes to include (plus all their descendants)

sourceGraphId
Type: System::Guid

The unique id of the source Graph object.

levels
Type: System::Int32

The number of links away from each selected object to include in the drag/drop subset.

formats
Type: array<System.Windows::DataFormat^>^

The DGML formats to publish in the IDataObject

Return Value

Type: System.Windows::IDataObject^

An IDataObject or null if the selection is empty

Return to top
Show: