Sdílet prostřednictvím


IGraphFormattedLabel.Label(GraphObject, String) Method

Definition

Provides an optional label that the consumer will use instead of the node's Label property.

public:
 System::String ^ Label(Microsoft::VisualStudio::GraphModel::GraphObject ^ graphObject, System::String ^ graphCommandDefinitionIdentifier);
public string Label (Microsoft.VisualStudio.GraphModel.GraphObject graphObject, string graphCommandDefinitionIdentifier);
abstract member Label : Microsoft.VisualStudio.GraphModel.GraphObject * string -> string
Public Function Label (graphObject As GraphObject, graphCommandDefinitionIdentifier As String) As String

Parameters

graphObject
GraphObject

The graph object to provide a display label for.

graphCommandDefinitionIdentifier
String

The command identifier associated with the node being displayed. This can be used to customize the label for a node when viewed in different views.

Returns

Applies to