Table of Contents

Method Bounds

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Bounds(CadDocument, CadSpace)

Gets the box of every entity a space draws, in the order it draws them. The box of an entity is the box of its display items, the same that Bounds holds for the whole space; an entity that draws nothing (on a frozen layer, with no words) has no row. A line from (0, 0) to (100, 0) is the box from (0, 0) to (100, 0); a TEXT 2.5 high and 10 long set at (0, 0) in an SHX font is the box of its letters and of the frame they stand in. A text in a TrueType font is measured by its font's letters, as an MTEXT's words are.

public static CadBoundsTable Bounds(CadDocument document, CadSpace space)

Parameters

document CadDocument

The drawing.

space CadSpace

The space: model space or a layout of the drawing.

Returns

CadBoundsTable

The boxes.

Exceptions

ArgumentNullException

Thrown when the document or the space is null.

Bounds(CadDocument, IEnumerable<string>)

Gets the boxes of the entities of some handles, in the order given, each in the space that holds it (model space or a layout). A handle the drawing has no entity of, or one that draws nothing, has no row.

public static CadBoundsTable Bounds(CadDocument document, IEnumerable<string> handles)

Parameters

document CadDocument

The drawing.

handles IEnumerable<string>

The handles.

Returns

CadBoundsTable

The boxes.

Exceptions

ArgumentNullException

Thrown when the document or the handles are null.