Compartir a través de


GraphCategory Class

Definition

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

public ref class GraphCategory : Microsoft::VisualStudio::GraphModel::GraphMetadataContainer
public class GraphCategory : Microsoft.VisualStudio.GraphModel.GraphMetadataContainer
type GraphCategory = class
    inherit GraphMetadataContainer
Public Class GraphCategory
Inherits GraphMetadataContainer
Inheritance

Properties

BasedOnCategory

Get/Set the base category or null

DefaultCallback (Inherited from GraphMetadataContainer)
Id

Unique Id of this GraphCategory

Methods

CreateDefaultMetadata() (Inherited from GraphMetadataContainer)
Equals(Object)

Determines of a passed in category is equivalent to this one

GetHashCode()

The hash code of the category

GetLabelOrId(Graph)

Return the Label of this GraphCategory or else return the ID if no label was set

GetMetadata(Graph)

Gets the graph specific metadata that describes this object.

(Inherited from GraphMetadataContainer)
IsBasedOn(GraphCategory)

Determines if this category is based upon the specified category. Walks the entire "BasedOn" chain looking for the specified category.

IsBasedOnCategory(String)
ToString()

The Id of the category

Applies to