Table of Contents

Method Update

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Update(CadMTextEditor, double, int, double, int, int)

Lays the words out again, as they are and with the box as the editor has it now. A width of nought wraps nothing; with columns, the width is the columns'.

public void Update(CadMTextEditor editor, double width, int attachment, double lineSpacing, int rgb, int layerRgb)

Parameters

editor CadMTextEditor

The words.

width double

The width of the box in drawing units.

attachment int

The attachment point, 1 top left to 9 bottom right.

lineSpacing double

The line spacing factor, 0.25 to 4.

rgb int

The colour of letters of no colour of their own, 0xRRGGBB.

layerRgb int

The colour of letters coded ByLayer, 0xRRGGBB.

Exceptions

ArgumentNullException

Thrown when the editor is null.

Update(CadMTextEditor, int, double, int, int)

Lays the words out again, as they are and in the box the editor has now (Frame): its width, defined height and columns, as the ruler and Column Settings change them.

public void Update(CadMTextEditor editor, int attachment, double lineSpacing, int rgb, int layerRgb)

Parameters

editor CadMTextEditor

The words and their box.

attachment int

The attachment point, 1 top left to 9 bottom right.

lineSpacing double

The line spacing factor, 0.25 to 4.

rgb int

The colour of letters of no colour of their own, 0xRRGGBB.

layerRgb int

The colour of letters coded ByLayer, 0xRRGGBB.

Exceptions

ArgumentNullException

Thrown when the editor is null.