Method SetTextStyle
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetTextStyle(int, int, DxfTextStyleTableRecord)
Sets the text style of a cell's text, as AutoCAD's SetTextStyle(row, col, id) takes its id: the cell's own (7,
by name), its flag 0x10 set; table.SetTextStyle(1, 0, db.TextStyleTable["GH_TXT"]) writes 7 GH_TXT. A cell that
has a 7 already has it written in its place, as each override of a cell is, before its 92 where AutoCAD 2021 writes
one, so that the cell holds one 7: a second after its value AutoCAD read, and the library the first. The block AutoCAD
drew the table with is not drawn anew.
public void SetTextStyle(int row, int col, DxfTextStyleTableRecord style)
Parameters
rowintThe row, from nought.
colintThe column, from nought.
styleDxfTextStyleTableRecordThe style, a record of the table's drawing.
Exceptions
- ArgumentNullException
Thrown when the style is null.
- ArgumentOutOfRangeException
Thrown when the cell is not one of the table's.
- ArgumentException
Thrown when the style is erased, in no drawing, or of another drawing than the table's.
- InvalidOperationException
Thrown when the table is erased.