共用方式為


LineLabelShape.Alignment 屬性

取得或設定對齊方式網域屬性的值。Microsoft.VisualStudio.Modeling.Diagrams.LineLabelShape.Alignment 的描述

命名空間:  Microsoft.VisualStudio.Modeling.Diagrams
組件:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll 中)

語法

'宣告
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LineLabelShape/Alignment.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LineLabelShape/Alignment.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DomainObjectIdAttribute("6dfda511-00f1-47f4-959a-683d0fdde1de")> _
<BrowsableAttribute(False)> _
<DomainPropertyAttribute(Kind := DomainPropertyKind.CustomStorage)> _
Public Property Alignment As LabelAlignment
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LineLabelShape/Alignment.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.LineLabelShape/Alignment.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DomainObjectIdAttribute("6dfda511-00f1-47f4-959a-683d0fdde1de")]
[BrowsableAttribute(false)]
[DomainPropertyAttribute(Kind = DomainPropertyKind.CustomStorage)]
public LabelAlignment Alignment { get; set; }

屬性值

型別:Microsoft.VisualStudio.Modeling.Diagrams.LabelAlignment

.NET Framework 安全性

請參閱

參考

LineLabelShape 類別

Microsoft.VisualStudio.Modeling.Diagrams 命名空間