Table of Contents

Class CadFrame

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A rectangle that may be turned: what a word takes on the page (Frames), and what a program asks whether it fits (Fits(CadDocument, CadSpace, CadFrame, CadFreeSpaceOptions, Tolerance)). It is given by its first corner, the one at the foot of the start of a line of words, its width along the line, its height across it and the angle the line runs at. A word 20 long and 5 high set at (10, 30) and turned 90 degrees has its first corner at (10, 30), its second at (10, 50) and its far corner at (5, 50).

public sealed class CadFrame
Inheritance
CadFrame
Inherited Members

Constructors

CadFrame(double, double, double, double, double)

Makes a frame.

Properties

Box

Gets the box of the frame in the drawing: its four corners' least and greatest.

Height

Gets the height, across it.

Rotation

Gets the angle the width runs at, in radians.

Width

Gets the width, along Rotation.

X

Gets the X of the first corner.

Y

Gets the Y of the first corner.

Methods

FromBox(DisplayBox)

Makes the frame of a box that is not turned.