Class ColorSetting
ColorSetting is intended for objects to be used in Settings. It provides a Color with the IShowProperty interface.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability
Assembly: CADability.dll
Syntax
[Serializable]
public class ColorSetting : IShowPropertyImpl, IShowProperty, IPropertyEntry, ISerializable, ISettingChanged
Constructors
| Improve this Doc View SourceColorSetting()
Declaration
public ColorSetting()
ColorSetting(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected ColorSetting(SerializationInfo info, StreamingContext context)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Runtime.Serialization.SerializationInfo | info | SerializationInfo |
| System.Runtime.Serialization.StreamingContext | context | StreamingContext |
ColorSetting(String, String)
Declaration
public ColorSetting(string settingName, string resourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | settingName | |
| System.String | resourceId |
Properties
| Improve this Doc View SourceColor
Declaration
public Color Color { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Drawing.Color |
Flags
Declaration
public override PropertyEntryType Flags { get; }
Property Value
| Type | Description |
|---|---|
| PropertyEntryType |
Overrides
| Improve this Doc View SourceLabel
Declaration
public override string Label { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
| Improve this Doc View SourceValue
Declaration
public override string Value { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
Overrides
Methods
| Improve this Doc View SourceAdded(IPropertyPage)
Declaration
public override void Added(IPropertyPage pp)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyPage | pp |
Overrides
| Improve this Doc View SourceButtonClicked(PropertyEntryButton)
Declaration
public override void ButtonClicked(PropertyEntryButton button)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyEntryButton | button |
Overrides
| Improve this Doc View SourceGetObjectData(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. |
Removed(IPropertyPage)
Declaration
public override void Removed(IPropertyPage pp)
Parameters
| Type | Name | Description |
|---|---|---|
| IPropertyPage | pp |
Overrides
Operators
| Improve this Doc View SourceImplicit(ColorSetting to Color)
Declaration
public static implicit operator Color(ColorSetting cs)
Parameters
| Type | Name | Description |
|---|---|---|
| ColorSetting | cs |
Returns
| Type | Description |
|---|---|
| System.Drawing.Color |
Explicit Interface Implementations
| Improve this Doc View SourceISettingChanged.SettingChangedEvent
Declaration
event SettingChangedDelegate ISettingChanged.SettingChangedEvent
Returns
| Type | Description |
|---|---|
| SettingChangedDelegate |
Implements
System.Runtime.Serialization.ISerializable