Class CadSettingAttribute
Marks a public property of a plugin's class as a setting the presenter shows and the user changes, as
[CadSetting("Text height", Minimum = 0.1)] public double TextHeight { get; set; } = 2.5;. The property is read
for its default once the plugin is loaded, and its value is set through Value; its type
is double, int, bool, string or an enumeration, and the presenter draws a box for it of
its own (D17 of the plan), so a plugin never touches the window.
[AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
public sealed class CadSettingAttribute : Attribute
- Inheritance
-
CadSettingAttribute
- Inherited Members
Constructors
- CadSettingAttribute(string)
Marks a property as a setting with the label the presenter shows.
Properties
- Description
Gets or sets what the setting does, as the presenter shows it under the label; null for nothing.
- Label
Gets the label the presenter shows.
- Maximum
Gets or sets the greatest value of a number, inclusive; infinity, for none, until set.
- Minimum
Gets or sets the least value of a number, inclusive; minus infinity, for none, until set.