共用方式為


SelectedShapesCollection.BoundingBox Property

Gets the bounding rectangle surrounding all selected ShapeElements in world units relative to the diagram's top-left.

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

Syntax

'宣告
Public ReadOnly Property BoundingBox As RectangleD
    Get
public RectangleD BoundingBox { get; }
public:
property RectangleD BoundingBox {
    RectangleD get ();
}
member BoundingBox : RectangleD
function get BoundingBox () : RectangleD

Property Value

Type: Microsoft.VisualStudio.Modeling.Diagrams.RectangleD

Remarks

The coordinate system increases positively down and to the right.

.NET Framework Security

See Also

Reference

SelectedShapesCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace