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
editorCadMTextEditorThe words.
widthdoubleThe width of the box in drawing units.
attachmentintThe attachment point, 1 top left to 9 bottom right.
lineSpacingdoubleThe line spacing factor, 0.25 to 4.
rgbintThe colour of letters of no colour of their own, 0xRRGGBB.
layerRgbintThe 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
editorCadMTextEditorThe words and their box.
attachmentintThe attachment point, 1 top left to 9 bottom right.
lineSpacingdoubleThe line spacing factor, 0.25 to 4.
rgbintThe colour of letters of no colour of their own, 0xRRGGBB.
layerRgbintThe colour of letters coded ByLayer, 0xRRGGBB.
Exceptions
- ArgumentNullException
Thrown when the editor is null.