LabelShape.Text Property

Gets or sets the text for the label shape.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.dll)

Syntax

'宣言
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DomainObjectIdAttribute("5df0fe47-6d8f-4eac-820d-e2f69a6a424f")> _
Public Property Text As String
'使用
Dim instance As LabelShape
Dim value As String

value = instance.Text

instance.Text = value
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute("5df0fe47-6d8f-4eac-820d-e2f69a6a424f")]
public string Text { get; set; }
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.Description", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute(L"5df0fe47-6d8f-4eac-820d-e2f69a6a424f")]
public:
property String^ Text {
    String^ get ();
    void set (String^ value);
}
public function get Text () : String
public function set Text (value : String)

Property Value

Type: System.String

The text for the label shape.

Permissions

See Also

Reference

LabelShape Class

LabelShape Members

Microsoft.VisualStudio.Modeling.Diagrams Namespace