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 | |
---|---|---|
GraphDataObject(Graph, Guid) | Construct new GraphDataObject | |
GraphDataObject(String, Guid, array<DataFormat[]) | Construct new GraphDataObject that publishes specific set of DGML formats |
Top
Properties
Name | Description | |
---|---|---|
AllDgmlFormats | Get list of all DGML formats, including Text formats. | |
DgmlFormat | Get the format representing DGML text. | |
GetSourceId | Get the Guid that represents the source of the drag/drop operation. | |
GraphFormat | Get the format representing a Graph object. |
Top
Methods
Name | Description | |
---|---|---|
Create(IEnumerable<GraphNode>, Guid, Int32) | Create an IDataObject for exchanging the selected nodes (and all their descendants). | |
Create(IEnumerable<GraphNode>, Guid, Int32, array<DataFormat[]) | Create an IDataObject for exchanging the selected nodes (and all their descendants). | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetClipboardData | Get the XML from the clipboard. | |
GetData(String) | Gets the data for the passed in format | |
GetData(Type) | Gets the data for the passed in format | |
GetData(IDataObject) | Get the DGML in the given data object. | |
GetData(String, Boolean) | Gets data for the passed in format | |
GetDataPresent(String) | Determines if the passed in format is supported | |
GetDataPresent(Type) | Determines if the passed in format is supported | |
GetDataPresent(String, Boolean) | Determines if the passed in format is supported by this data object | |
GetFormats() | Gets the formats supported by this data object | |
GetFormats(Boolean) | Gets the formats supported by this data object | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetSourceGuid | Gets the source guid for the given data object. | |
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 | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
IsClipboardDgml | Determine if the clipboard has a supported format | |
IsDgml | Determines if the given xml starts with DirectedGraph | |
IsGraphData | Determines if the data object has a supported format | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
SetData(Object) | Sets data into the data object - Not Implemented | |
SetData(String, Object) | Sets data into the data object - Not Implemented | |
SetData(Type, Object) | Sets data into the data object - Not Implemented | |
SetData(String, Object, Boolean) | Sets data into the data object - Not Implemented | |
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.