Udostępnij za pośrednictwem


Właściwość NodeShape.AbsoluteBounds —

Właściwość domain, która zwraca lub ustawia rozmiar i położenie prostokąta obwiedni kształtu, mierzone względem lewej górnej części diagramu.

Przestrzeń nazw:  Microsoft.VisualStudio.Modeling.Diagrams
Zestaw:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0 (w Microsoft.VisualStudio.Modeling.Sdk.Diagrams.12.0.dll)

Składnia

'Deklaracja
<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; }

Wartość właściwości

Typ: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

Uwagi

Aby odczytać lub ustawić granice mierzona w stosunku do ParentShape, użyj Bounds.

Można zastąpić OnAbsoluteBoundsChanged do reagowania na zmiany rozmiaru lub położenia kształtów danej klasy.Alternatywnie, można wykrywać zmiany określonego kształtu przez dodanie detektora zdarzeń dla AbsoluteBoundsChanged.

Zabezpieczenia programu .NET Framework

Zobacz też

Informacje

NodeShape Klasa

Przestrzeń nazw Microsoft.VisualStudio.Modeling.Diagrams

OnAbsoluteBoundsChanged

ParentShape