Class MultipleChoiceSetting
Wrappes an int value. The value represents a choice of severel predefined choices. It represents a setting defined by a name and a value. This setting can be displayed and modified in the control center. It is represented as a combo box. The label left of the combo box is given by the resourceId GetString(String, StringTable.Category), the values are
Implements
Inherited Members
Namespace: CADability
Assembly: CADability.dll
Syntax
[Serializable]
public class MultipleChoiceSetting : MultipleChoiceProperty, IPropertyEntry, IShowProperty, ISerializable, ISettingChanged, IJsonSerialize
Constructors
| Improve this Doc View SourceMultipleChoiceSetting()
Declaration
protected MultipleChoiceSetting()
MultipleChoiceSetting(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected MultipleChoiceSetting(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | SerializationInfo |
| System.Runtime.Serialization.StreamingContext | context | StreamingContext |
MultipleChoiceSetting(String, String)
Constructs a MultipleChoiceSetting object.
Declaration
public MultipleChoiceSetting(string resourceId, string settingName)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | the string table id for the presentation of the setting in the PropertyExplorer (IControlCenter |
| System.String | settingName | the name of the setting |
MultipleChoiceSetting(String, String, String[])
Constructs a MultipleChoiceSetting object.
Declaration
public MultipleChoiceSetting(string resourceId, string settingName, string[] values)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | resourceId | the string table id for the presentation of the setting in the PropertyExplorer (IControlCenter |
| System.String | settingName | the name of the setting |
| System.String[] | values | the possible choices |
Properties
| Improve this Doc View SourceCurrentSelection
Declaration
public int CurrentSelection { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Int32 |
Methods
| Improve this Doc View SourceGetObjectData(IJsonWriteData)
Declaration
public void GetObjectData(IJsonWriteData data)
Parameters
| Type | Name | Description |
|---|---|---|
| IJsonWriteData | data |
GetObjectData(SerializationInfo, StreamingContext)
Implements System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
Declaration
public void GetObjectData(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | The System.Runtime.Serialization.SerializationInfo to populate with data. |
| System.Runtime.Serialization.StreamingContext | context | The destination (System.Runtime.Serialization.StreamingContext) for this serialization. |
OnSelectionChanged(String)
Declaration
protected override void OnSelectionChanged(string selected)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | selected |
Overrides
| Improve this Doc View SourceSetObjectData(IJsonReadData)
Declaration
public void SetObjectData(IJsonReadData data)
Parameters
| Type | Name | Description |
|---|---|---|
| IJsonReadData | data |
SetSelection(Int32)
Declaration
public override void SetSelection(int toSelect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | toSelect |
Overrides
Events
| Improve this Doc View SourceSettingChangedEvent
Declaration
public event SettingChangedDelegate SettingChangedEvent
Event Type
| Type | Description |
|---|---|
| SettingChangedDelegate |