Compartir a través de


NodeShape.AbsoluteBounds Property

A domain property that gets or sets the size and position of the bounding rectangle of the shape, measured relative to the top left of the diagram.

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

Syntax

'Declaración
<DomainObjectIdAttribute("7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")> _
<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)> _
Public Property AbsoluteBounds As RectangleD
    Get
    Set
[DomainObjectIdAttribute("7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")]
[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)]
public RectangleD AbsoluteBounds { get; set; }
[DomainObjectIdAttribute(L"7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")]
[DisplayNameResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.DisplayName", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[DescriptionResourceAttribute(L"Microsoft.VisualStudio.Modeling.Diagrams.NodeShape/AbsoluteBounds.Description", 
    typeof(CoreDesignSurfaceDomainModel), L"Microsoft.VisualStudio.Modeling.Diagrams.GeneratedCode.DomainModelResx")]
[BrowsableAttribute(false)]
[DomainPropertyAttribute(Kind = DomainPropertyKind::CustomStorage)]
public:
property RectangleD AbsoluteBounds {
    RectangleD get ();
    void set (RectangleD value);
}
[<DomainObjectIdAttribute("7d8fa935-dc8e-43b6-a72d-be8f5bc5c17b")>]
[<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)>]
member AbsoluteBounds : RectangleD with get, set
function get AbsoluteBounds () : RectangleD
function set AbsoluteBounds (value : RectangleD)

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

Remarks

To get or set the bounds measured relative to the ParentShape, use Bounds.

You can override OnAbsoluteBoundsChanged(AbsoluteBoundsChangedEventArgs) to respond to changes in the size or position of shapes of a particular class. Alternatively, you can listen for changes in a specific shape by adding an event listener for AbsoluteBoundsChanged.

.NET Framework Security

See Also

Reference

NodeShape Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace

OnAbsoluteBoundsChanged(AbsoluteBoundsChangedEventArgs)

ParentShape