Table of Contents

Class CadInPlaceEdit

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A text a command asks to be edited in place on the canvas (InPlace): what it is, the words as written, and where and how large it stands, so that the window can put its editor over it in the text's own place, height and angle.

public sealed class CadInPlaceEdit
Inheritance
CadInPlaceEdit
Inherited Members

Constructors

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

Makes the description of a text edited in place.

Properties

Attachment

Gets how an MTEXT is attached at its location, 1 top left to 9 bottom right.

ChangesBox

Gets whether the editor changed the box: its width, attachment, line spacing, background mask, defined height or columns.

FieldShown

Gets the words each field written in Value came to, in their order, for the editor to show; empty where the text has none.

Frame

Gets the box an MTEXT being made opens in the editor with, where MTEXT's Columns option gave it columns: two static columns 93.75 wide with a gutter of 12.5, 200 in all and 25 high, for an MTEXT 2.5 high given the Static defaults; null where the editor opens with Width alone. What the editor makes of it is NewFrame.

Handle

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

Height

Gets the height of its letters.

IsTableCell

Gets whether a table cell is edited.

Kind

Gets what the text is.

Location

Gets where the text stands.

Move

Gets or sets where the editor of a table cell goes once the words are written, as AutoCAD's keys move it: Tab to the next cell, Shift+Tab to the one before, Enter to the cell below; none where the edit ends. The window sets it before it answers the prompt.

NewAnnotative

Gets or sets whether an MTEXT being made was made annotative (true) or not (false) with the Annotative button of the editor, over what its text style says; null where it was not changed. An MTEXT already made keeps its own state.

NewAttachment

Gets or sets the attachment an MTEXT was justified to in the editor (Justification, 1 top left to 9 bottom right); null where it was not changed.

NewFrame

Gets or sets the box an MTEXT was given in the editor where its defined height or columns changed (the ruler's height grips, Set Mtext Height, Column Settings), which the command writes with the words; null where they did not.

NewLineSpacing

Gets or sets the line spacing factor an MTEXT was given in the editor (Line Spacing, 1 single); null where it was not changed.

NewMask

Gets or sets the background mask an MTEXT was given in the editor (Background Mask); null where it was not changed.

NewWidth

Gets or sets the width an MTEXT's frame was dragged to in the editor, which the command writes with the words; null where it was not dragged. The window sets it before it answers the prompt.

Rotation

Gets the angle of its baseline in radians.

StyleName

Gets the text style.

TableColumn

Gets the column of the table cell edited, from nought; -1 for any other text.

TableLive

Gets the preview of the table's rows for the words typed in the cell edited, which the window updates with each key and draws the table from; null for any other text. The drawing is not written until the editor closes.

TableRow

Gets the row of the table cell edited, from nought, where Handle is a table's; -1 for any other text.

Value

Gets the words as written: of a text with fields the words with the code of each field in its place, Drawn %<\AcVar Date \f "dd/MM/yyyy">%.

Width

Gets the width of an MTEXT's box; nought for none.