Delen via


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.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.GraphModel.GraphDataObject

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

Syntax

'Declaration
Public Class GraphDataObject _
    Implements IDataObject
public class GraphDataObject : IDataObject
public ref class GraphDataObject : IDataObject
type GraphDataObject =  
    class 
        interface IDataObject 
    end
public class GraphDataObject implements IDataObject

The GraphDataObject type exposes the following members.

Constructors

  Name Description
Public method GraphDataObject(Graph, Guid) Construct new GraphDataObject
Public method GraphDataObject(String, Guid, array<DataFormat[]) Construct new GraphDataObject that publishes specific set of DGML formats

Top

Properties

  Name Description
Public propertyStatic member AllDgmlFormats Get list of all DGML formats, including Text formats.
Public propertyStatic member DgmlFormat Get the format representing DGML text.
Public property GetSourceId Get the Guid that represents the source of the drag/drop operation.
Public propertyStatic member GraphFormat Get the format representing a Graph object.

Top

Methods

  Name Description
Public methodStatic member Create(IEnumerable<GraphNode>, Guid, Int32) Create an IDataObject for exchanging the selected nodes (and all their descendants).
Public methodStatic member Create(IEnumerable<GraphNode>, Guid, Int32, array<DataFormat[]) Create an IDataObject for exchanging the selected nodes (and all their descendants).
Public method Equals Determines whether the specified object is equal to the current object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodStatic member GetClipboardData Get the XML from the clipboard.
Public method GetData(String) Gets the data for the passed in format
Public method GetData(Type) Gets the data for the passed in format
Public methodStatic member GetData(IDataObject) Get the DGML in the given data object.
Public method GetData(String, Boolean) Gets data for the passed in format
Public method GetDataPresent(String) Determines if the passed in format is supported
Public method GetDataPresent(Type) Determines if the passed in format is supported
Public method GetDataPresent(String, Boolean) Determines if the passed in format is supported by this data object
Public method GetFormats() Gets the formats supported by this data object
Public method GetFormats(Boolean) Gets the formats supported by this data object
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public methodStatic member GetSourceGuid Gets the source guid for the given data object.
Public methodStatic member GetSubset Helper 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 method GetType Gets the Type of the current instance. (Inherited from Object.)
Public methodStatic member IsClipboardDgml Determine if the clipboard has a supported format
Public methodStatic member IsDgml Determines if the given xml starts with DirectedGraph
Public methodStatic member IsGraphData Determines if the data object has a supported format
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method SetData(Object) Sets data into the data object - Not Implemented
Public method SetData(String, Object) Sets data into the data object - Not Implemented
Public method SetData(Type, Object) Sets data into the data object - Not Implemented
Public method SetData(String, Object, Boolean) Sets data into the data object - Not Implemented
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace