GraphLink Methods

Include Protected Members
Include Inherited Members

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

The GraphLink type exposes the following members.

Methods

  Name Description
Public method AddCategory Adds a category to the object. (Inherited from GraphObject.)
Public method AsNode Converts the GraphObject to a GraphNode. If this is a GraphGroup, the inner node is returned. For types other than GraphNode/Group, null is returned. (Inherited from GraphObject.)
Public method ClearCategories Remove all categories from this object. (Inherited from GraphObject.)
Public method ClearValue(GraphProperty) Removes the value of the specified property. (Inherited from GraphObject.)
Public method CopyCategories Copies any new categories from the given object, keeping existing categories. (Inherited from GraphObject.)
Public method CopyProperties Copies any new properties from the given object, keeping existing property values unchanged. (Inherited from GraphObject.)
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 method FindRelatedLinks Finds the links that match the acceptLink predicate. They are found by doing a breadth first search along links matching the traverseLink predicate, in the Source or Target direction designated by the searchDirection.
Public method GetHashCode Serves as the default hash function. (Inherited from Object.)
Public method GetMetaObject (Inherited from GraphObject.)
Protected method GetSchemaValue Gets the schema-specific value of the property, if one exists. (Inherited from GraphObject.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method GetValue(String) Gets the value of the specified property. (Inherited from GraphObject.)
Public method GetValue(GraphProperty) Gets the value of the specified annotation. (Inherited from GraphObject.)
Public method GetValue<T>(GraphProperty, Graph) Gets the value of the specified property. (Inherited from GraphObject.)
Public method GetValue<T>(GraphProperty, T) Gets the value of the specified annotation. If property is not set, we return the default value that the caller passed to this method. (Inherited from GraphObject.)
Public method GetValue<T>(GraphProperty, Graph, GraphCategory%) Gets the value of the specified property, and also returns the category that this property value was inherited from, if any. (Inherited from GraphObject.)
Public method GetValueAsString Returns the given property as a string that uses the given culture. (Inherited from GraphObject.)
Public method HasCategory(String) Returns true if the object has the given category. (Inherited from GraphObject.)
Public method HasCategory(GraphCategory) Returns true if the object has the given category. (Inherited from GraphObject.)
Public method HasCategory(IEnumerable<GraphCategory>) Returns true if the object has any of the given categories. (Inherited from GraphObject.)
Public method HasCategoryInSet Determines whether the given set of categories applies to this object. (Inherited from GraphObject.)
Public method HasLocalValue Returns true if the specified property exists on this object with no category inheritance check. (Inherited from GraphObject.)
Public method HasValue(String) Find out whether the object has a value for the specified property. (Inherited from GraphObject.)
Public method HasValue(GraphProperty) Returns true if the specified annotation exists. (Inherited from GraphObject.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OnCategoryChanged Override that notifies the GraphGroupCollection any time a GraphCategory has changed on this link. Notify the GraphGroupCollection any time a GraphCategory has changed on this link because this might affect the IsContainment behavior of this link, which affects the structure of the GraphGroup hierarchy. (Overrides GraphObject.OnCategoryChanged(GraphCategory, GraphCategoryChangeType).)
Public method OnPropertyChanged(String) Raises a PropertyChangd event for the named property. (Inherited from GraphObject.)
Public method OnPropertyChanged(GraphProperty) Raises a PropertyChangd event for the given GraphProperty. (Inherited from GraphObject.)
Public method Remove Remove this link from the graph.
Public method RemoveCategory Removes the category of this object. (Inherited from GraphObject.)
Public method SetValue(String, Object) Adds an annotation, using the given key, type, and value. (Inherited from GraphObject.)
Public method SetValue<T>(GraphProperty, T) Sets the value of the given property. If the property already exists, its value is overwritten unless the annotation flags prevent otherwise. (Inherited from GraphObject.)
Public method ToString A more human friendly default string representation of a Link object. (Overrides Object.ToString().)
Protected method WrapGraphObject Modifies the current graph object to share the same property and categories as the given graph object. The wrapper and wrappee graph objects will always have identical sets of properties and categories. (Inherited from GraphObject.)

Top

See Also

Reference

GraphLink Class

Microsoft.VisualStudio.GraphModel Namespace