GraphDataObject::Create Method (IEnumerable<GraphNode^>^, Guid, Int32, array<DataFormat^>^)
Visual Studio 2015
Create an IDataObject for exchanging the selected nodes (and all their descendants).
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
Show: