Table of Contents

Class PropertiesExplorer

Namespace
CADability.Forms
Assembly
CADability.Forms.dll
public class PropertiesExplorer : Control, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IControlCenter
Inheritance
PropertiesExplorer
Implements
Inherited Members

Constructors

PropertiesExplorer()

public PropertiesExplorer()

Properties

ActivePropertyPage

The property page whose tab is currently selected, or null when there is none.

public IPropertyPage ActivePropertyPage { get; }

Property Value

IPropertyPage

ActiveTabPage

public TabPage ActiveTabPage { get; }

Property Value

TabPage

EntryWithLabelExtension

public IPropertyEntry EntryWithLabelExtension { get; }

Property Value

IPropertyEntry

EntryWithListBox

public IPropertyEntry EntryWithListBox { get; }

Property Value

IPropertyEntry

EntryWithTextBox

public IPropertyEntry EntryWithTextBox { get; }

Property Value

IPropertyEntry

Frame

The frame this control center belongs to. The frame sets it when it takes over the control center; the pages created afterwards get it as their Frame.

public IFrame Frame { get; set; }

Property Value

IFrame

ImageList

public ImageList ImageList { set; }

Property Value

ImageList

Methods

AddPropertyPage(string, int)

Creates a new, empty property page as a tab of the control center. The text and the tool tip of the tab are taken from the StringTable with the id titleId+"TabPage".

public IPropertyPage AddPropertyPage(string titleId, int iconId)

Parameters

titleId string

the id of the page, by which GetPropertyPage(string) and ShowPropertyPage(string) find it again

iconId int

the index of the tab's icon in the image list of the control center

Returns

IPropertyPage

the new page

AddTabPage(TabPage)

public void AddTabPage(TabPage tp)

Parameters

tp TabPage

DisplayHelp(string)

Shows the help topic with the given id. CADability.Forms does not implement it (the method throws a NotImplementedException) and nothing in CADability calls it.

public void DisplayHelp(string helpID)

Parameters

helpID string

the id of the help topic, usually the resource id of an entry

Dispose(bool)

protected override void Dispose(bool disposing)

Parameters

disposing bool

FindItem(string)

Finds the entry with the given resource id (or label text) on the active property page, searching open and closed entries (see FindFromHelpLink(string, bool)).

public IPropertyEntry FindItem(string name)

Parameters

name string

the resource id or label text of the entry

Returns

IPropertyEntry

the entry, or null when there is no active page or no such entry

GetPropertyPage(string)

Returns the property page that was created with the given id.

public IPropertyPage GetPropertyPage(string titleId)

Parameters

titleId string

the id given to AddPropertyPage(string, int), e.g. "Action", "Project", "Global" or "View" for the standard pages

Returns

IPropertyPage

the page, or null when there is none with this id

HideEntry(string, bool)

Hides (or shows again) every entry whose ResourceId equals entryId on all pages of the control center. Takes effect when the pages are next rebuilt, e.g. when an entry is added, opened or closed.

public void HideEntry(string entryId, bool hide)

Parameters

entryId string

the resource id of the entries to hide

hide bool

true: hide the entries, false: show them again

HideLabelExtension()

public void HideLabelExtension()

HideListBox()

public void HideListBox()

HideTextBox()

public void HideTextBox()

PreProcessKeyDown(KeyEventArgs)

Lets the control center handle a key before the focused control gets it: Tab and the arrow keys move the selection, Ctrl+Tab switches the page, Enter and Escape end or abort an edit, and the rest is passed on to OnPreProcessKeyDown of the active page. The frame calls it with the keys the active action did not handle; Handled is set when the key was consumed.

public void PreProcessKeyDown(KeyEventArgs e)

Parameters

e KeyEventArgs

the key event

Refresh(IPropertyEntry)

public void Refresh(IPropertyEntry toRefresh)

Parameters

toRefresh IPropertyEntry

RemovePropertyPage(string)

Removes the property page with the given id from the control center.

public bool RemovePropertyPage(string titleId)

Parameters

titleId string

the id of the page

Returns

bool

true when the page was removed, false when there is none with this id

SelectNextEntry(bool)

public bool SelectNextEntry(bool forward)

Parameters

forward bool

Returns

bool

Selected(IPropertyEntry)

public void Selected(IPropertyEntry selectedEntry)

Parameters

selectedEntry IPropertyEntry

ShowLabelExtension(Rectangle, string, IPropertyEntry)

public void ShowLabelExtension(Rectangle screenLocation, string initialText, IPropertyEntry sender)

Parameters

screenLocation Rectangle
initialText string
sender IPropertyEntry

ShowListBox(Rectangle, string[], int, IPropertyEntry)

public void ShowListBox(Rectangle screenLocation, string[] items, int selected, IPropertyEntry sender)

Parameters

screenLocation Rectangle
items string[]
selected int
sender IPropertyEntry

ShowPropertyPage(string)

Brings the property page with the given id to the front, i.e. selects its tab.

public bool ShowPropertyPage(string titleId)

Parameters

titleId string

the id of the page

Returns

bool

true when the page exists, false otherwise

ShowTextBox(Rectangle, string, IPropertyEntry, Point)

public void ShowTextBox(Rectangle screenLocation, string initialText, IPropertyEntry sender, Point screenClickPos)

Parameters

screenLocation Rectangle
initialText string
sender IPropertyEntry
screenClickPos Point

UnSelected(IPropertyEntry)

public void UnSelected(IPropertyEntry unselected)

Parameters

unselected IPropertyEntry

isHidden(string)

public bool isHidden(string entryId)

Parameters

entryId string

Returns

bool