Table of Contents

Class CadPluginSetting

Namespace
OpenCAD2D.Plugins
Assembly
OpenCAD2D.Core.dll

One setting a plugin declares with CadSettingAttribute: its label, kind, default and range, as the presenter draws them, and its value, read from and written to the plugin's property. A text height declared with Minimum = 0.1 and set to 0.05 is refused, and the plugin keeps the height it had.

public sealed class CadPluginSetting
Inheritance
CadPluginSetting
Inherited Members

Properties

Choices

Gets the names a choice offers, in the order the enumeration declares them; empty for any other kind.

Default

Gets the value the property had when the plugin was loaded: a double, an int, a bool, a string or, for a choice, the name of the value.

Description

Gets what the setting does; null for nothing.

Kind

Gets the kind of value it holds.

Label

Gets the label the presenter shows: "Text height".

Maximum

Gets the greatest value of a number, inclusive; infinity for none.

Minimum

Gets the least value of a number, inclusive; minus infinity for none.

Name

Gets the name of the property: TextHeight.

Value

Gets or sets the value: a double, an int, a bool, a string or, for a choice, the name of the value. A value of another type is converted as the invariant culture reads it, so "2.5" sets a number.

Methods

ToString()