Table of Contents

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

resourceId string

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

PropertyEntryType

SubItems

Must be overridden, when Flags contains PropertyEntryType.HasSubEntries. See SubItems

public override IPropertyEntry[] SubItems { get; }

Property Value

IPropertyEntry[]

Methods

Add(IPropertyEntry)

public void Add(IPropertyEntry subEntry)

Parameters

subEntry IPropertyEntry

Add(IPropertyEntry[])

public void Add(IPropertyEntry[] subEntries)

Parameters

subEntries IPropertyEntry[]

Add(IEnumerable<IPropertyEntry>)

public void Add(IEnumerable<IPropertyEntry> subEntries)

Parameters

subEntries IEnumerable<IPropertyEntry>

Remove(IPropertyEntry)

public void Remove(IPropertyEntry subEntry)

Parameters

subEntry IPropertyEntry

RemoveAll()

public void RemoveAll()