public override PointD[] GetBoundingBox()
public: array<PointD>^ GetBoundingBox(); override
Return Value
Two points are always returned. First one is a lower-left corner and second is upper-right corner of bounding box.
public override PointD[] GetBoundingBox()
public: array<PointD>^ GetBoundingBox(); override
| Exception | Description |
|---|---|
| Eplan.EplApi.Base.BaseException | Thrown when something went wrong in internal function. |
| System.InvalidOperationException | Thrown when bounding box cannot be calculated. |
GetBoundingBox property Eplan.EplApi.DataModel.Placement.Page can't be null. For classes DimensionItem, DimensionCircle and PlaceHolder this method will throw an exception InvalidOperationException. If GetBoundingBox is called on Text which length is zero an exception InvalidOperationException is thrown. Exception is also thrown for objects of type Eplan.EplApi.DataModel.Function when property Eplan.EplApi.DataModel.Function.Enums.Category is set to Shielding.