GraphCategory Class

Graph Categories are used to specify category information on a GraphObject, like nodes and links.

Inheritance Hierarchy

System.Object
  Microsoft.VisualStudio.GraphModel.GraphCategory

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

Syntax

'Declaration
Public Class GraphCategory
public class GraphCategory
public ref class GraphCategory
type GraphCategory =  class end
public class GraphCategory

The GraphCategory type exposes the following members.

Properties

  Name Description
Public property BasedOnCategory Get/Set the base category or null
Public property Id Unique id of this GraphCategory

Top

Methods

  Name Description
Public method Copy Copy the category so you can manage context local metadata.
Public method Equals Determines of a passed in category is equivalent to this one (Overrides Object.Equals(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 GetGraphMetadata(Graph) Extra information about this category
Public method GetGraphMetadata(Graph, Boolean)
Public method GetHashCode The hash code of the category (Overrides Object.GetHashCode().)
Public method GetLabelOrId Return the Label of this GraphCategory or else return the ID if no label was set
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IsBasedOn Determines if this category is based upon the specified category. Walks the entire "BasedOn" chain looking for the specified category.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString The Id of the category (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.

See Also

Reference

Microsoft.VisualStudio.GraphModel Namespace