GraphDataObject Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

This class provides IDataObject support for exchanging DGML data via the clipboard and drag/drop.

System.Object
  Microsoft.VisualStudio.GraphModel.GraphDataObject

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

public class GraphDataObject : IDataObject

The GraphDataObject type exposes the following members.

  NameDescription
Public methodGraphDataObject(Graph, Guid)Construct new GraphDataObject
Public methodGraphDataObject(String, Guid, DataFormat[])Construct new GraphDataObject that publishes specific set of DGML formats
Top

  NameDescription
Public propertyStatic memberAllDgmlFormatsGet list of all DGML formats, including Text formats.
Public propertyStatic memberDgmlFormatGet the format representing DGML text.
Public propertyGetSourceIdGet the Guid that represents the source of the drag/drop operation.
Public propertyStatic memberGraphFormatGet the format representing a Graph object.
Top

  NameDescription
Public methodStatic memberCreate(IEnumerable<GraphNode>, Guid, Int32)Create an IDataObject for exchanging the selected nodes (and all their descendants).
Public methodStatic memberCreate(IEnumerable<GraphNode>, Guid, Int32, DataFormat[])Create an IDataObject for exchanging the selected nodes (and all their descendants).
Public methodEqualsDetermines whether the specified object is equal to the current object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic memberGetClipboardDataGet the XML from the clipboard.
Public methodGetData(String)Gets the data for the passed in format
Public methodGetData(Type)Gets the data for the passed in format
Public methodStatic memberGetData(IDataObject)Get the DGML in the given data object.
Public methodGetData(String, Boolean)Gets data for the passed in format
Public methodGetDataPresent(String)Determines if the passed in format is supported
Public methodGetDataPresent(Type)Determines if the passed in format is supported
Public methodGetDataPresent(String, Boolean)Determines if the passed in format is supported by this data object
Public methodGetFormats()Gets the formats supported by this data object
Public methodGetFormats(Boolean)Gets the formats supported by this data object
Public methodGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodStatic memberGetSourceGuidGets the source guid for the given data object.
Public methodStatic memberGetSubsetHelper method that a new Graph that contains all the selected nodes plus links and nodes linked to up to the given number of levels of indirection
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodStatic memberIsClipboardDgmlDetermine if the clipboard has a supported format
Public methodStatic memberIsDgmlDetermines if the given xml starts with DirectedGraph
Public methodStatic memberIsGraphDataDetermines if the data object has a supported format
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodSetData(Object)Sets data into the data object - Not Implemented
Public methodSetData(String, Object)Sets data into the data object - Not Implemented
Public methodSetData(Type, Object)Sets data into the data object - Not Implemented
Public methodSetData(String, Object, Boolean)Sets data into the data object - Not Implemented
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft