次の方法で共有


LabelShape.Text プロパティ

ラベル図形のテキストを取得または設定します。

名前空間:  Microsoft.VisualStudio.Modeling.Diagrams
アセンブリ:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 内)

構文

'宣言
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DomainObjectIdAttribute("5df0fe47-6d8f-4eac-820d-e2f69a6a424f")> _
Public Property Text As String
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LabelShape/Text.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute("5df0fe47-6d8f-4eac-820d-e2f69a6a424f")]
public string Text { get; set; }

プロパティ値

型 : System.String
ラベル図形のテキスト。

.NET Framework セキュリティ

  • 直前の呼び出し元に対する完全な信頼。このメンバーは、部分的に信頼されているコードから使用することはできません。詳細については、「部分信頼コードからのライブラリの使用」を参照してください。

参照

関連項目

LabelShape クラス

Microsoft.VisualStudio.Modeling.Diagrams 名前空間