NodeShape.AbsoluteBounds 属性

获取或设置形状的边框大小和位置的域属性,测量相对于图的左上角。

命名空间:  Microsoft.VisualStudio.Modeling.Diagrams
程序集:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0(在 Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll 中)

语法

声明
<DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.DisplayName",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.Description",  _
    GetType(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")> _
<BrowsableAttribute(False)> _
<DomainPropertyAttribute(Kind := DomainPropertyKind.CustomStorage)> _
<DomainObjectIdAttribute("7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")> _
Public Property AbsoluteBounds As RectangleD
[DisplayNameResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute("Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.Description", 
    typeof(CoreDesignSurfaceDomainModel), "Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[BrowsableAttribute(false)]
[DomainPropertyAttribute(Kind = DomainPropertyKind.CustomStorage)]
[DomainObjectIdAttribute("7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")]
public RectangleD AbsoluteBounds { get; set; }

属性值

类型:Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

备注

获取或设置区域测量相对 ParentShape,使用 Bounds

您可以重写 OnAbsoluteBoundsChanged 响应特定选件类形状的大小或位置的更改。 或者,可以通过添加 AbsoluteBoundsChanged的事件侦听器侦听在给定形状的更改。

.NET Framework 安全性

请参阅

参考

NodeShape 类

Microsoft.VisualStudio.Modeling.Diagrams 命名空间

OnAbsoluteBoundsChanged

ParentShape