GraphLink Class
Represents a link in the directed graph
Inheritance Hierarchy
System.Object
Microsoft.VisualStudio.GraphModel.GraphObject
Microsoft.VisualStudio.GraphModel.GraphLink
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Public Class GraphLink _
Inherits GraphObject
public class GraphLink : GraphObject
public ref class GraphLink : public GraphObject
type GraphLink =
class
inherit GraphObject
end
public class GraphLink extends GraphObject
The GraphLink type exposes the following members.
Constructors
Name | Description | |
---|---|---|
GraphLink(Graph, GraphNode, GraphNode) | Constructs a link | |
GraphLink(Graph, GraphNode, GraphNode, String, GraphCategory) | Constructs a link |
Top
Properties
Name | Description | |
---|---|---|
Caption | Displayable label for the link | |
Categories | Return all categories. Never returns null. (Inherited from GraphObject.) | |
CategoryCount | Return number of categories in the object. (Inherited from GraphObject.) | |
DescriptiveCategoryCaption | (Inherited from GraphObject.) | |
IsCollapsed | Get whether this node is collapsed. (Inherited from GraphObject.) | |
IsContainment | Get whether this link is a Containment link or not. | |
IsExpanded | Get whether this node is expanded. (Inherited from GraphObject.) | |
IsGroup | Get whether this object is IsGroup. It looks for the GraphProperties.StyleForGroup (Inherited from GraphObject.) | |
IsLinkAndNodesVisible | A link is "visible" when it is visible and its source and target nodes are visible as well. | |
IsPseudo | Get whether this object is Pseudo. It looks for the GraphProperties.IsPseudo (Inherited from GraphObject.) | |
Item | Property that gets or sets a property value. (Inherited from GraphObject.) | |
Owner | Get the Graph object that this object belongs to. (Inherited from GraphObject.) | |
Properties | Property that returns an enumeration of all annotations. The order of the enumeration is random. (Inherited from GraphObject.) | |
PropertyCount | Property that returns an number of of all annotations. (Inherited from GraphObject.) | |
PropertyKeys | Property that returns an enumeration of all annotation keys. The order of the enumeration is random. (Inherited from GraphObject.) | |
PropertyValues | Property that returns an enumeration of all annotation values. The order of the enumeration is random. (Inherited from GraphObject.) | |
Source | The link source | |
Target | The link target | |
Visibility | Helper property to get/set visibility property of a GraphObject (Inherited from GraphObject.) |
Top
Methods
Name | Description | |
---|---|---|
AddCategory | Add a category to the object (Inherited from GraphObject.) | |
ClearCategories | Remove all categories from this object. (Inherited from GraphObject.) | |
ClearValue(GraphProperty) | Removes the value of the specified property (Inherited from GraphObject.) | |
CopyCategories | Copy any new categories from the given object, keeping existing categories. (Inherited from GraphObject.) | |
CopyProperties | Copy any new properties from the given object, keeping existing property values unchanged. (Inherited from GraphObject.) | |
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.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetValue(GraphProperty) | Gets the value of the specified annotation. (Inherited from GraphObject.) | |
GetValue<T>(GraphProperty, Graph) | Gets the value of the specified property. (Inherited from GraphObject.) | |
GetValue<T>(GraphProperty, T) | Gets the value of the specified annotation. if property is not set we reutnr the default value that the caller pass to this method (Inherited from GraphObject.) | |
GetValue<T>(GraphProperty, Graph, GraphCategory%) | Gets the value of the specified property, and also return the category that this property value was inherited from if any. (Inherited from GraphObject.) | |
GetValueAsString | Returns the given property as a string using the given culture. (Inherited from GraphObject.) | |
HasCategory(String) | Return true if the object has the given category. (Inherited from GraphObject.) | |
HasCategory(GraphCategory) | Return true if the object has the given category. (Inherited from GraphObject.) | |
HasCategory(IEnumerable<GraphCategory>) | Return true if the object has any of the given categories. (Inherited from GraphObject.) | |
HasCategoryInSet | Determines if the given set of categories applies to this object. (Inherited from GraphObject.) | |
HasValue | Return true if the specified annotation exists. (Inherited from GraphObject.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
RemoveCategory | Remove the category of this object (Inherited from GraphObject.) | |
SetValue<T> | Sets the value of the given property. If the proeprty already exists, its value is overwritten unless the annotation flags prevent otherwise. (Inherited from GraphObject.) | |
ToString | A more human friendly default string representation of a Link object (Overrides Object.ToString().) |
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.