IGraphFormattedLabel.Label(GraphObject, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.