Class BooleanProperty
A boolean property entry, which also can be used as a setting (hence serializable)
Inheritance
System.Object
BooleanProperty
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
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()
Assembly: CADability.dll
Syntax
[Serializable]
public class BooleanProperty : MultipleChoiceProperty, IPropertyEntry, IShowProperty, ISerializable, IDeserializationCallback, ISettingChanged, IJsonSerialize, IJsonSerializeDone
Constructors
|
Improve this Doc
View Source
BooleanProperty()
Declaration
protected BooleanProperty()
|
Improve this Doc
View Source
BooleanProperty(Object, String, String)
Declaration
public BooleanProperty(object ObjectWithProperty, string PropertyName, string resourceId)
Parameters
| Type |
Name |
Description |
| System.Object |
ObjectWithProperty |
|
| System.String |
PropertyName |
|
| System.String |
resourceId |
|
|
Improve this Doc
View Source
BooleanProperty(Object, String, String, String)
Erzeugt ein BooleanProperty Objekt, welches die boolean Property eines anderen
Objektes darstellt und manipuliert.
Declaration
public BooleanProperty(object ObjectWithProperty, string PropertyName, string resourceIdLabel, string resourceIdValues)
Parameters
| Type |
Name |
Description |
| System.Object |
ObjectWithProperty |
das Objekt, welches die boolean Property enthält
|
| System.String |
PropertyName |
der Name der Property (wird für Reflection verwendet)
|
| System.String |
resourceIdLabel |
ResourceId für den Label und dessen ToolTips. Die
Texte für die ToolTips werden unter dieser ResourceId gefolgt von ".ShortInfo" bzw. ".DetailedInfo"
gesucht. Unter ".Images" findet sich der Name und die Indizes einer ImageList
in der Resource
|
| System.String |
resourceIdValues |
ResourceId für die Texte für true bzw. false. Der Text muss
mit einem Trennzeichen beginnen, gefolgt von dem Text für true, gefolgt von dem Trennzeichen,
gefolgt von dem Wert für false, z.B. "|ja|nein"
|
|
Improve this Doc
View Source
BooleanProperty(SerializationInfo, StreamingContext)
Constructor required by deserialization
Declaration
protected BooleanProperty(SerializationInfo info, StreamingContext context)
Parameters
| Type |
Name |
Description |
| System.Runtime.Serialization.SerializationInfo |
info |
SerializationInfo
|
| System.Runtime.Serialization.StreamingContext |
context |
StreamingContext
|
|
Improve this Doc
View Source
BooleanProperty(String, String)
Declaration
public BooleanProperty(string resourceIdLabel, string resourceIdValues)
Parameters
| Type |
Name |
Description |
| System.String |
resourceIdLabel |
|
| System.String |
resourceIdValues |
|
|
Improve this Doc
View Source
BooleanProperty(String, String, String)
Erzeugt eine BooleanProperty, welches einen eigenen boolean Wert enthält und
diesen darstellen und manipulieren kann. Der Wert ist über die Property BooleanValue
verfügbar.
Declaration
public BooleanProperty(string resourceIdLabel, string resourceIdValues, string settingName)
Parameters
| Type |
Name |
Description |
| System.String |
resourceIdLabel |
ResourceId für den Label und dessen ToolTips. Die
Texte für die ToolTips werden unter dieser ResourceId gefolgt von ".ShortInfo" bzw. ".DetailedInfo"
gesucht. Unter ".Images" findet sich der Name und die Indizes einer ImageList
in der Resource
|
| System.String |
resourceIdValues |
ResourceId für die Texte für true bzw. false. Der Text muss
mit einem Trennzeichen beginnen, gefolgt von dem Text für true, gefolgt von dem Trennzeichen,
gefolgt von dem Wert für false, z.B. "|ja|nein"
|
| System.String |
settingName |
|
Properties
|
Improve this Doc
View Source
BooleanValue
Declaration
public bool BooleanValue { get; set; }
Property Value
| Type |
Description |
| System.Boolean |
|
|
Improve this Doc
View Source
Value
Declaration
public override string Value { get; }
Property Value
| Type |
Description |
| System.String |
|
Overrides
Methods
|
Improve this Doc
View Source
GetObjectData(IJsonWriteData)
Declaration
public void GetObjectData(IJsonWriteData data)
Parameters
|
Improve this Doc
View Source
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.
|
|
Improve this Doc
View Source
OnSelectionChanged(String)
Declaration
protected override void OnSelectionChanged(string selected)
Parameters
| Type |
Name |
Description |
| System.String |
selected |
|
Overrides
|
Improve this Doc
View Source
SetObjectData(IJsonReadData)
Declaration
public void SetObjectData(IJsonReadData data)
Parameters
Events
|
Improve this Doc
View Source
BooleanChangedEvent
Declaration
public event BooleanChangedDelegate BooleanChangedEvent
Event Type
|
Improve this Doc
View Source
GetBooleanEvent
Declaration
public event BooleanProperty.GetBooleanDelegate GetBooleanEvent
Event Type
|
Improve this Doc
View Source
SetBooleanEvent
Declaration
public event BooleanProperty.SetBooleanDelegate SetBooleanEvent
Event Type
|
Improve this Doc
View Source
SettingChangedEvent
Declaration
public event SettingChangedDelegate SettingChangedEvent
Event Type
Operators
|
Improve this Doc
View Source
Explicit(BooleanProperty to Boolean)
Declaration
public static explicit operator bool (BooleanProperty bp)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Explicit Interface Implementations
|
Improve this Doc
View Source
IJsonSerializeDone.SerializationDone()
Declaration
void IJsonSerializeDone.SerializationDone()
|
Improve this Doc
View Source
IDeserializationCallback.OnDeserialization(Object)
Declaration
void IDeserializationCallback.OnDeserialization(object sender)
Parameters
| Type |
Name |
Description |
| System.Object |
sender |
|
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback