Table of Contents

Constructor CadInPlaceEdit

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

CadInPlaceEdit(CadInPlaceKind, string, string, GeoPoint2, double, double, double, string, int)

Makes the description of a text edited in place.

public CadInPlaceEdit(CadInPlaceKind kind, string handle, string value, GeoPoint2 location, double height, double rotation, double width, string styleName, int attachment)

Parameters

kind CadInPlaceKind

What it is.

handle string

The handle of the entity edited; null for an MTEXT being made by MTEXT.

value string

The words as written: a TEXT's value, an MTEXT's words with their codes.

location GeoPoint2

Where the text stands: a TEXT's insertion point, an MTEXT's attachment point.

height double

The height of its letters.

rotation double

The angle of its baseline in radians.

width double

The width of an MTEXT's box; nought for none or a TEXT.

styleName string

The text style.

attachment int

How an MTEXT is attached at its location, 1 top left to 9 bottom right; 1 for a TEXT.

Exceptions

ArgumentNullException

Thrown when the value is null.