IGraphFormattedLabel.Label 方法

提供可选标签,客户将使用它而不是节点的标签属性。

命名空间:  Microsoft.VisualStudio.GraphModel
程序集:  Microsoft.VisualStudio.GraphModel(在 Microsoft.VisualStudio.GraphModel.dll 中)

语法

声明
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

参数

  • graphCommandDefinitionIdentifier
    类型:System.String
    与显示的节点相关联的命令标识符。视图可以用不同的方式时,节点可使用自定义标签。

返回值

类型:System.String
返回 String

.NET Framework 安全性

请参见

参考

IGraphFormattedLabel 接口

Microsoft.VisualStudio.GraphModel 命名空间