IGraphFormattedLabel.Label Method
Provides an optional label that the consumer will use instead of the node's Label property.
Namespace: Microsoft.VisualStudio.GraphModel
Assembly: Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)
Syntax
'Declaration
Function Label ( _
graphObject As GraphObject, _
graphCommandDefinitionIdentifier As String _
) As String
string Label(
GraphObject graphObject,
string graphCommandDefinitionIdentifier
)
String^ Label(
GraphObject^ graphObject,
String^ graphCommandDefinitionIdentifier
)
abstract Label :
graphObject:GraphObject *
graphCommandDefinitionIdentifier:string -> string
function Label(
graphObject : GraphObject,
graphCommandDefinitionIdentifier : String
) : String
Parameters
graphObject
Type: Microsoft.VisualStudio.GraphModel.GraphObjectThe graph object to provide a display label for.
graphCommandDefinitionIdentifier
Type: StringThe command identifier associated with the node being displayed. This can be used to customize the label for a node when viewed in different views.
Return Value
Type: String
Returns String.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.