Class SimplePropertyGroup
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
A simple container for several IPropertyEntry entries in the treeview of the controlcenter. Add subentries to this group before the group ist displayed in the treeview. If you add or remove subentries while the group is displayed you will have to call Refresh(IShowProperty).
public class SimplePropertyGroup : PropertyEntryImpl, IPropertyEntry, IShowProperty
- Inheritance
-
SimplePropertyGroup
- Implements
- Inherited Members
Constructors
SimplePropertyGroup(string)
public SimplePropertyGroup(string resourceId)
Parameters
resourceIdstring
Properties
Flags
Implementation of Flags: the derived class states what the entry is and what the user can do with it. The flags must match the overridden members, e.g. HasSubEntries requires SubItems, ValueEditable requires Value and EndEdit(bool, bool, string), DropDown requires GetDropDownList() and ListBoxSelected(int).
public override PropertyEntryType Flags { get; }
Property Value
SubItems
Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems
public override IPropertyEntry[] SubItems { get; }
Property Value
Methods
Add(IPropertyEntry)
public void Add(IPropertyEntry subEntry)
Parameters
subEntryIPropertyEntry
Add(IPropertyEntry[])
public void Add(IPropertyEntry[] subEntries)
Parameters
subEntriesIPropertyEntry[]
Add(IEnumerable<IPropertyEntry>)
public void Add(IEnumerable<IPropertyEntry> subEntries)
Parameters
subEntriesIEnumerable<IPropertyEntry>
Remove(IPropertyEntry)
public void Remove(IPropertyEntry subEntry)
Parameters
subEntryIPropertyEntry
RemoveAll()
public void RemoveAll()