Show / Hide Table of Contents

Class BooleanProperty

A boolean property entry, which also can be used as a setting (hence serializable)

Inheritance
System.Object
PropertyEntryImpl
MultipleChoiceProperty
BooleanProperty
Implements
IPropertyEntry
IShowProperty
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
ISettingChanged
IJsonSerialize
IJsonSerializeDone
Inherited Members
MultipleChoiceProperty.propertyLabelText
MultipleChoiceProperty.selectedText
MultipleChoiceProperty.unselectedText
MultipleChoiceProperty.user
MultipleChoiceProperty.Choices
MultipleChoiceProperty.SelectedText
MultipleChoiceProperty.ChoiceIndex(String)
MultipleChoiceProperty.SetUnselectedText(String)
MultipleChoiceProperty.SelectionChangedEvent
MultipleChoiceProperty.ValueChangedEvent
MultipleChoiceProperty.SetSelection(Int32)
MultipleChoiceProperty.CurrentIndex
MultipleChoiceProperty.Flags
MultipleChoiceProperty.GetDropDownList()
MultipleChoiceProperty.ListBoxSelected(Int32)
PropertyEntryImpl.resourceId
PropertyEntryImpl.labelText
PropertyEntryImpl.PropertyEntryChangedState(StateChangedArgs)
PropertyEntryImpl.Frame
PropertyEntryImpl.Refresh()
PropertyEntryImpl.propertyPage
PropertyEntryImpl.propertyTreeView
PropertyEntryImpl.IsOpen
PropertyEntryImpl.Label
PropertyEntryImpl.LabelText
PropertyEntryImpl.ResourceId
PropertyEntryImpl.Parent
PropertyEntryImpl.Index
PropertyEntryImpl.IndentLevel
PropertyEntryImpl.SubItems
PropertyEntryImpl.ContextMenu
PropertyEntryImpl.DeferUpdate
PropertyEntryImpl.PropertyEntryChangedStateEvent
PropertyEntryImpl.Added(IPropertyPage)
PropertyEntryImpl.ButtonClicked(PropertyEntryButton)
PropertyEntryImpl.EditTextChanged(String)
PropertyEntryImpl.EndEdit(Boolean, Boolean, String)
PropertyEntryImpl.Opened(Boolean)
PropertyEntryImpl.OpenOrCloseSubEntries()
PropertyEntryImpl.Removed(IPropertyPage)
PropertyEntryImpl.Select()
PropertyEntryImpl.Selected(IPropertyEntry)
PropertyEntryImpl.StartEdit(Boolean)
PropertyEntryImpl.UnSelected(IPropertyEntry)
PropertyEntryImpl.ReadOnly
PropertyEntryImpl.StateChangedEvent
PropertyEntryImpl.IShowProperty.LabelText
PropertyEntryImpl.IShowProperty.HelpLink
PropertyEntryImpl.IShowProperty.InfoText
PropertyEntryImpl.IShowProperty.LabelType
PropertyEntryImpl.IShowProperty.EntryType
PropertyEntryImpl.SubEntriesCount
PropertyEntryImpl.SubEntries
PropertyEntryImpl.IShowProperty.OwnerDrawHeight
PropertyEntryImpl.IShowProperty.Hidden
PropertyEntryImpl.IShowProperty.IsSelected
PropertyEntryImpl.IShowProperty.Added(IPropertyTreeView)
PropertyEntryImpl.IShowProperty.Selected()
PropertyEntryImpl.IShowProperty.UnSelected()
PropertyEntryImpl.IShowProperty.ChildSelected(IShowProperty)
PropertyEntryImpl.Concat(IPropertyEntry[], IPropertyEntry[])
PropertyEntryImpl.IShowProperty.Removed(IPropertyTreeView)
PropertyEntryImpl.IShowProperty.ShowOpen(Boolean)
PropertyEntryImpl.IShowProperty.SetTabIndex(Int32)
PropertyEntryImpl.IShowProperty.LabelChanged(String)
PropertyEntryImpl.IShowProperty.SetFocus()
PropertyEntryImpl.IShowProperty.Refresh()
PropertyEntryImpl.IShowProperty.OnEnterPressed()
PropertyEntryImpl.IShowProperty.OnVisibilityChanged(Boolean)
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.UserInterface
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
MultipleChoiceProperty.Value

Methods

| Improve this Doc View Source

GetObjectData(IJsonWriteData)

Declaration
public void GetObjectData(IJsonWriteData data)
Parameters
Type Name Description
IJsonWriteData data
| 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
MultipleChoiceProperty.OnSelectionChanged(String)
| Improve this Doc View Source

SetObjectData(IJsonReadData)

Declaration
public void SetObjectData(IJsonReadData data)
Parameters
Type Name Description
IJsonReadData data

Events

| Improve this Doc View Source

BooleanChangedEvent

Declaration
public event BooleanChangedDelegate BooleanChangedEvent
Event Type
Type Description
BooleanChangedDelegate
| Improve this Doc View Source

GetBooleanEvent

Declaration
public event BooleanProperty.GetBooleanDelegate GetBooleanEvent
Event Type
Type Description
BooleanProperty.GetBooleanDelegate
| Improve this Doc View Source

SetBooleanEvent

Declaration
public event BooleanProperty.SetBooleanDelegate SetBooleanEvent
Event Type
Type Description
BooleanProperty.SetBooleanDelegate
| Improve this Doc View Source

SettingChangedEvent

Declaration
public event SettingChangedDelegate SettingChangedEvent
Event Type
Type Description
SettingChangedDelegate

Operators

| Improve this Doc View Source

Explicit(BooleanProperty to Boolean)

Declaration
public static explicit operator bool (BooleanProperty bp)
Parameters
Type Name Description
BooleanProperty bp
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

IPropertyEntry
IShowProperty
System.Runtime.Serialization.ISerializable
System.Runtime.Serialization.IDeserializationCallback
ISettingChanged
IJsonSerialize
IJsonSerializeDone
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX