Table of Contents

Class CadTextStyleEditor

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The edits of the text style table, as AutoCAD's Text Style dialog (STYLE) and -STYLE make them: each one undo step through ApplyEdit(string, IReadOnlyList<CadEditRecord>, Action<CadEditScope>), refused where AutoCAD refuses it.

public static class CadTextStyleEditor
Inheritance
CadTextStyleEditor
Inherited Members

Methods

Add(CadDocument, string, string)

Adds a style, as New of the Text Style dialog: a copy of the settings of another (the style selected), under a name no style of the drawing has, letters of either case the same.

Apply(CadDocument, string, CadTextStyleSettings)

Writes the settings into a style, as Apply of the Text Style dialog: every text written in it drawn again in them. Nothing is written, and nothing refused, where they are the style's already.

CountUses(DxfDatabase, string)

Gets how many texts are written in a style: the TEXTs, MTEXTs and attribute definitions of model space, the layouts and the blocks, as AutoCAD counts what keeps a style from being deleted.

Current(DxfDatabase)

Gets the name of the current text style ($TEXTSTYLE), as the drawing's table spells it; Standard where the header names none it has.

Delete(CadDocument, string)

Deletes a style, as Delete of the Text Style dialog: refused for Standard, the current style, a style texts are written in (saying how many) and one a dimension style or a table style points at.

Rename(CadDocument, string, string)

Renames a style with every text written in it, as the Text Style dialog's Rename; Standard keeps its name, as in AutoCAD.

SetCurrent(CadDocument, string)

Makes a style current ($TEXTSTYLE), as Set Current and the style box do.

Styles(DxfDatabase)

Gets the styles of a drawing that are of letters, not shapes, in the order of the table.