GraphCategory 類別

定義

圖形類別用來指定 GraphObject 上的類別目錄資訊,例如節點和連結。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
繼承

屬性

BasedOnCategory

取得/設定基底類別或 nullGet/Set the base category or null

DefaultCallback (繼承來源 GraphMetadataContainer)
Id

此 GraphCategory 的唯一識別碼Unique Id of this GraphCategory

方法

CreateDefaultMetadata() (繼承來源 GraphMetadataContainer)
Equals(Object)

判斷傳入的類別等同于這一項Determines of a passed in category is equivalent to this one

GetHashCode()

類別的雜湊碼The hash code of the category

GetLabelOrId(Graph)

傳回此 GraphCategory 的標籤,否則如果未設定標籤,則傳回識別碼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.

(繼承來源 GraphMetadataContainer)
IsBasedOn(GraphCategory)

判斷此分類是否以指定的類別為基礎。Determines if this category is based upon the specified category. 引導整個「BasedOn」鏈尋找指定的類別。Walks the entire "BasedOn" chain looking for the specified category.

IsBasedOnCategory(String)
ToString()

類別的識別碼The Id of the category

適用於