Table of Contents

Class CadMlineStyleRequest

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

What MLSTYLE gives its Multiline Style dialog: the styles of the drawing, the current one, and the buttons of AutoCAD 2021's dialog as calls that act at once, as AutoCAD's do, each one edit of MLSTYLE's one undo step: New (Add(string, DxfMlineStyleSettings)), Modify, Rename, Delete, Load and Save. The style made current by Set Current (Current) is set when the dialog closes with OK. Each call gives the reason it was refused, in the words of the typed MLSTYLE, or null.

public sealed class CadMlineStyleRequest
Inheritance
CadMlineStyleRequest
Inherited Members

Properties

Current

Gets or sets the style Set Current chose, made current when the dialog closes with OK.

Document

Gets the document whose styles are listed.

IsAccepted

Gets or sets whether the dialog closed with OK.

Names

Gets the names of the styles of the drawing, in capitals, sorted by their letters as the typed "?" lists them.

Methods

Add(string, DxfMlineStyleSettings)

New: adds a style of a name.

Delete(string)

Delete: removes a style that is not STANDARD, current or in use.

IsLocked(string)

Gets whether only the description of a style may be modified: STANDARD, or a style a multiline is drawn by.

Load(string, string)

Load: adds a style of a file of them.

Modify(string, DxfMlineStyleSettings)

Modify: gives a style new settings; of STANDARD or a style in use, only the description is taken.

NamesInFile(string, out string)

The names of the styles a file of them holds, in its order (Load's list).

Rename(string, string)

Rename: a style other than STANDARD takes a new name, the current style kept current.

Save(string, string)

Save: writes a style to a file of them, its other styles kept.

SettingsOf(string)

Gets a copy of what a style is made of; null for a name the drawing has not.

WhyNotDeleted(string)

Gets why a style may not be deleted (STANDARD, the current style, one in use); null where it may.

WhyNotNamed(string)

Gets why a name cannot be given to a new style; null for a name AutoCAD takes that the drawing has not.