Table of Contents

Method Apply

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

Apply(CadDocument, string, CadMLeaderStyleSettings)

Writes the settings into a style, as OK of the Modify Multileader Style dialog, and gives every multileader of the style its values, those it has of its own kept (a value that differed from the style's before). Nothing is written, and nothing refused, where they are the style's already.

public static CadEditResult Apply(CadDocument document, string name, CadMLeaderStyleSettings settings)

Parameters

document CadDocument

The document.

name string

The style's name.

settings CadMLeaderStyleSettings

The settings.

Returns

CadEditResult

What came of it; refused for a text height not above nought, a size below nought, a text style or a linetype the drawing has not.

Exceptions

ArgumentNullException

Thrown when the document or the settings are null.