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
ActiveTabPage
public TabPage ActiveTabPage { get; }
Property Value
EntryWithLabelExtension
public IPropertyEntry EntryWithLabelExtension { get; }
Property Value
EntryWithListBox
public IPropertyEntry EntryWithListBox { get; }
Property Value
EntryWithTextBox
public IPropertyEntry EntryWithTextBox { get; }
Property Value
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
ImageList
public ImageList ImageList { set; }
Property Value
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
titleIdstringthe id of the page, by which GetPropertyPage(string) and ShowPropertyPage(string) find it again
iconIdintthe 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
tpTabPage
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
helpIDstringthe id of the help topic, usually the resource id of an entry
Dispose(bool)
protected override void Dispose(bool disposing)
Parameters
disposingbool
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
namestringthe 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
titleIdstringthe 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
entryIdstringthe resource id of the entries to hide
hidebooltrue: 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
eKeyEventArgsthe key event
Refresh(IPropertyEntry)
public void Refresh(IPropertyEntry toRefresh)
Parameters
toRefreshIPropertyEntry
RemovePropertyPage(string)
Removes the property page with the given id from the control center.
public bool RemovePropertyPage(string titleId)
Parameters
titleIdstringthe 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
forwardbool
Returns
Selected(IPropertyEntry)
public void Selected(IPropertyEntry selectedEntry)
Parameters
selectedEntryIPropertyEntry
ShowLabelExtension(Rectangle, string, IPropertyEntry)
public void ShowLabelExtension(Rectangle screenLocation, string initialText, IPropertyEntry sender)
Parameters
screenLocationRectangleinitialTextstringsenderIPropertyEntry
ShowListBox(Rectangle, string[], int, IPropertyEntry)
public void ShowListBox(Rectangle screenLocation, string[] items, int selected, IPropertyEntry sender)
Parameters
screenLocationRectangleitemsstring[]selectedintsenderIPropertyEntry
ShowPropertyPage(string)
Brings the property page with the given id to the front, i.e. selects its tab.
public bool ShowPropertyPage(string titleId)
Parameters
titleIdstringthe 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
screenLocationRectangleinitialTextstringsenderIPropertyEntryscreenClickPosPoint
UnSelected(IPropertyEntry)
public void UnSelected(IPropertyEntry unselected)
Parameters
unselectedIPropertyEntry
isHidden(string)
public bool isHidden(string entryId)
Parameters
entryIdstring