Table of Contents

Class ShowPropertyGroup

Namespace
CADability.UserInterface
Assembly
CADability.dll

Simple group-entry into the treeview of the control center. The resourceId specifies the text that is displayed. Use AddSubEntry to add al the subentries for this group entry. All subentries must be added before this group entry is displayed.

public class ShowPropertyGroup : PropertyEntryImpl, IPropertyEntry, IShowProperty
Inheritance
ShowPropertyGroup
Implements
Inherited Members

Constructors

ShowPropertyGroup(string)

Creates an empty group whose label is the string resourceId of the StringTable. Add the sub entries with AddSubEntry(IPropertyEntry) or AddSubEntries(params IPropertyEntry[]) before the group is displayed.

public ShowPropertyGroup(string resourceId)

Parameters

resourceId string

the resource id of the label text

Fields

subEntriesInternal

The sub entries of the group, which SubItems returns. Never null.

protected IPropertyEntry[] subEntriesInternal

Field Value

IPropertyEntry[]

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

AddSubEntries(params IPropertyEntry[])

Appends several entries to the sub entries of the group, in the given order.

public void AddSubEntries(params IPropertyEntry[] ToAdd)

Parameters

ToAdd IPropertyEntry[]

the entries to add

AddSubEntry(IPropertyEntry)

Appends an entry to the sub entries of the group.

public void AddSubEntry(IPropertyEntry ToAdd)

Parameters

ToAdd IPropertyEntry

the entry to add

ClearSubEntries()

Removes all sub entries from the group. The property page is not notified; when the group is already displayed, call Refresh() afterwards.

public void ClearSubEntries()