GraphNode Methods

 

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

NameDescription
System_CAPS_pubmethodAddCategory(GraphCategory^)

Adds a category to the object.(Inherited from GraphObject.)

System_CAPS_pubmethodAsNode()

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.)

System_CAPS_pubmethodClearCategories()

Remove all categories from this object.(Inherited from GraphObject.)

System_CAPS_pubmethodClearValue(GraphProperty^)

Removes the value of the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodCopy(GraphNodeId^)

Clones a Node, including all properties, and clones new Links from the original Node's Links

System_CAPS_pubmethodCopy(String^)

Clones a Node, including all properties, and clones new Links from the original Node's Links

System_CAPS_pubmethodCopyCategories(GraphObject^)

Copies any new categories from the given object, keeping existing categories.(Inherited from GraphObject.)

System_CAPS_pubmethodCopyProperties(GraphObject^)

Copies any new properties from the given object, keeping existing property values unchanged.(Inherited from GraphObject.)

System_CAPS_pubmethodEquals(Object^)

(Inherited from Object.)

System_CAPS_protmethodFinalize()

(Inherited from Object.)

System_CAPS_pubmethodFindAncestorGroups()

Returns the list of all ancestor groups that contain this node. This differs from FindAncestors because it only returns nodes that have IsGroup=true.

System_CAPS_pubmethodFindAncestors()

Walks recursively up all ancestors of this node and returns the unique set.

System_CAPS_pubmethodFindDescendants()

Walk down the containment links of this node and all its descendants and return the unique set.

System_CAPS_pubmethodFindFirstRelatedNode(GraphSearchDirection, Predicate<GraphLink^>^, Predicate<GraphNode^>^, Predicate<GraphNode^>^)

Finds the first node that matches the acceptNode predicate that is also related to this node according to the traverseLink and traverseNode predicates.

It is found by doing a breadth first search along links matching the traverseLink predicate, in the To or From direction designated by the searchDirection parameter. Returns null if it does not exist.

System_CAPS_pubmethodFindRelatedContainmentNodes(GraphSearchDirection)

Get related nodes that have a containment relationship to this node

System_CAPS_pubmethodFindRelatedContainmentNodes(GraphSearchDirection, GraphSearchOption, array<GraphCategory^>^)

Get related nodes that have a containment relationship to this node

System_CAPS_pubmethodFindRelatedNodes(GraphSearchDirection, Predicate<GraphLink^>^, Predicate<GraphNode^>^, Predicate<GraphNode^>^)

Finds the dgml nodes that matches the acceptNode predicate and are related in a way that matches the traverseLink and traverseNode predicates.

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 parameter. Then if the node matches the traverseNode predicate it keeps searching recurrsively through that node in the same direction and returns all nodes that match the acceptNode predicate. The search can handle circularity in the graph.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetMetaObject(Expression^)

(Inherited from GraphObject.)

System_CAPS_protmethodGetSchemaValue(GraphProperty^)

Gets the schema-specific value of the property, if one exists.(Inherited from GraphObject.)

System_CAPS_pubmethodGetSources(array<GraphCategory^>^)

Gets the sources linked with this node via a link that matches at least 1 of the specified link categories.

System_CAPS_pubmethodGetTargets(array<GraphCategory^>^)

Gets the targets linked with this node via a link that matches at least 1 of the specified link categories.

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodGetValue(GraphProperty^)

Gets the value of the specified annotation.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue(String^)

Gets the value of the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue<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.)

System_CAPS_pubmethodGetValue<T>(GraphProperty^, Graph^)

Gets the value of the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodGetValue<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.)

System_CAPS_pubmethodGetValueAsString(GraphProperty^, CultureInfo^)

Returns the given property as a string that uses the given culture.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategory(GraphCategory^)

Returns true if the object has the given category.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategory(IEnumerable<GraphCategory^>^)

Returns true if the object has any of the given categories.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategory(String^)

Returns true if the object has the given category.(Inherited from GraphObject.)

System_CAPS_pubmethodHasCategoryInSet(HashSet<GraphCategory^>^, GraphCategoryMatchOption)

Determines whether the given set of categories applies to this object.(Inherited from GraphObject.)

System_CAPS_pubmethodHasLocalValue(GraphProperty^)

Returns true if the specified property exists on this object with no category inheritance check.(Inherited from GraphObject.)

System_CAPS_pubmethodHasParentGroup(GraphGroup^)

For internal book keeping only.

System_CAPS_pubmethodHasValue(GraphProperty^)

Returns true if the specified annotation exists.(Inherited from GraphObject.)

System_CAPS_pubmethodHasValue(String^)

Find out whether the object has a value for the specified property.(Inherited from GraphObject.)

System_CAPS_pubmethodIsContainedBy(GraphGroup^)

True if the group is an ancestor of this node.

System_CAPS_protmethodMemberwiseClone()

(Inherited from Object.)

System_CAPS_protmethodOnCategoryChanged(GraphCategory^, GraphCategoryChangeType)

(Inherited from GraphObject.)

System_CAPS_pubmethodOnPropertyChanged(GraphProperty^)

Raises a PropertyChangd event for the given GraphProperty.(Inherited from GraphObject.)

System_CAPS_pubmethodOnPropertyChanged(String^)

Override that notifies the GraphGroupCollection whenever the IsGroup property has changed on this node.

This has to be synchronous so that GraphGroup is immediately available after this operation in the same transaction.(Overrides GraphObject::OnPropertyChanged(String^).)

System_CAPS_pubmethodRemove()

Remove this node from the graph

System_CAPS_pubmethodRemoveCategory(GraphCategory^)

Removes the category of this object.(Inherited from GraphObject.)

System_CAPS_pubmethodSetValue(String^, Object^)

Adds an annotation, using the given key, type, and value.(Inherited from GraphObject.)

System_CAPS_pubmethodSetValue<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.)

System_CAPS_pubmethodToString()

A more human friendly default string representation of a Node object(Overrides Object::ToString().)

System_CAPS_protmethodWrapGraphObject(GraphObject^)

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.)

Return to top
Show: