Class GroupProperty
- Namespace
- CADability.UserInterface
- Assembly
- CADability.dll
A simple entry for the showproperty tree, wich is represented by a GruopTitle eintry which contains some subentries. A folder in the treeview of the controlcenter. The subentries mus be specified in the constructur.
public class GroupProperty : PropertyEntryImpl, IPropertyEntry, IShowProperty
- Inheritance
-
GroupProperty
- Implements
- Inherited Members
Constructors
GroupProperty(string, IPropertyEntry[])
Creates the group with its sub entries.
public GroupProperty(string resourceId, IPropertyEntry[] subEntries)
Parameters
resourceIdstringResource id of the title text
subEntriesIPropertyEntry[]The entries shown below the title; may be empty
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
Overrides SubEntriesCount, returns the number of subentries in this property view.
public override IPropertyEntry[] SubItems { get; }
Property Value
Methods
SetFlags(PropertyEntryType)
Replaces the Flags of the entry, e.g. to add LabelEditable so that the user can rename the group.
public void SetFlags(PropertyEntryType flags)
Parameters
flagsPropertyEntryTypeThe new flags; they should keep GroupTitle and HasSubEntries
SetSubEntries(IPropertyEntry[])
Replaces the sub entries and refreshes the display when the group is shown on a property page. Used e.g. by Shell to update the list of its parametric properties.
public void SetSubEntries(IPropertyEntry[] subEntries)
Parameters
subEntriesIPropertyEntry[]The new sub entries