Class CadTableStyleEditor
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
The edits of the table styles, as AutoCAD's Table Style dialog (TABLESTYLE) makes them: each one undo step through ApplyEdit(string, IReadOnlyList<CadEditRecord>, Action<CadEditScope>), refused where AutoCAD refuses it. A style changed draws anew every table written in it.
public static class CadTableStyleEditor
- Inheritance
-
CadTableStyleEditor
- Inherited Members
Methods
- Add(CadDocument, string, string)
Adds a style, as New of the Table Style dialog: a copy of the settings of another (Start With), under a name no style of the drawing has, letters of either case the same; the dictionary ACAD_TABLESTYLE made where the drawing has none, and the named object dictionary first where the drawing was written without it.
- AddStandard(CadDocument)
Adds AutoCAD's Standard, of the drawing's units, where the drawing has no table style of that name, as AutoCAD's drawing always has it; one undo step, nothing where it has one.
- Apply(CadDocument, string, CadTableStyleSettings)
Writes the settings into a style, as OK of the Modify Table Style dialog, and draws anew every table written in it. Nothing is written, and nothing refused, where they are the style's already.
- CountUses(DxfDatabase, string)
Gets how many tables are written in a style: the tables of model space, the layouts and the blocks that name it, as AutoCAD counts what keeps a style from being deleted.
- Current(DxfDatabase)
Gets the name of the current table style (CTABLESTYLE), as the dictionary spells it; Standard where the drawing names none it has.
- Delete(CadDocument, string)
Deletes a style, as Delete of the Table Style dialog: refused for Standard, the current style and a style a table is written in, as AutoCAD greys Delete for them.
- Find(DxfDatabase, string)
Gets the style of a name; null where the drawing has none.
- Rename(CadDocument, string, string)
Renames a style with the tables drawn in it, as -RENAME Tablestyle does: the entry of the dictionary ACAD_TABLESTYLE takes the new name, which the tables follow since they point at the style by its handle, and the current style (CTABLESTYLE) names it where it was the one renamed. Standard keeps its name.
- SetCurrent(CadDocument, string)
Makes a style current (CTABLESTYLE), as Set Current does. Refused where the drawing has no such style, or cannot hold the variable: a drawing with no CLASSES section to list DICTIONARYVAR in.
- Standard(DxfDatabase)
Gets the settings of AutoCAD's Standard in a drawing's units: millimetres (title 6, header and data 4.5, margins 1.5), else inches (0.25, 0.18 and 0.06).
- Styles(DxfDatabase)
Gets the table styles of a drawing, by name, letters of either case alike first: the entries of its dictionary ACAD_TABLESTYLE that are styles; none where it has none.
- WhyNotDeleted(DxfDatabase, string)
Gets why a style may not be deleted, as Delete is greyed: Standard, the current style, a style a table uses; null where it may.