Class ExOptionsView
- Namespace
- ExControls
- Assembly
- ExControls.dll
Represents an options view with a searchable tree of option pages on the left and the selected ExOptionsPanel on the right.
[ToolboxBitmap(typeof(ToolboxIcons), "Toolbox.ExOptionsView.ico")]
public class ExOptionsView : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl, ISupportInitialize, IThemeable
- Inheritance
-
ExOptionsView
- Implements
- Inherited Members
- Extension Methods
Constructors
ExOptionsView()
Initializes a new instance of the ExOptionsView class.
public ExOptionsView()
Properties
HeaderNodeNameBackColor
Gets or sets background color of node name label.
[ExCategory(CategoryType.Appearance)]
public Color HeaderNodeNameBackColor { get; set; }
Property Value
HeaderNodeNameFont
Gets or sets font of header panel name.
[ExCategory(CategoryType.Appearance)]
public Font HeaderNodeNameFont { get; set; }
Property Value
HeaderNodeNameForeColor
Gets or sets foreground color of node name label.
[ExCategory(CategoryType.Appearance)]
public Color HeaderNodeNameForeColor { get; set; }
Property Value
HeaderNodeNameVisible
Gets or sets visibility of the Header node name.
[ExCategory(CategoryType.Appearance)]
public bool HeaderNodeNameVisible { get; set; }
Property Value
LinkToChildrenForeColor
Gets or sets foreground color of generated links for children.
[ExCategory(CategoryType.Appearance)]
public Color LinkToChildrenForeColor { get; set; }
Property Value
PanelContainer
Gets the panel that contains the OptionsPanels on this ExOptionsView.
public OptionsPanelContainer PanelContainer { get; }
Property Value
Panels
Gets the collection of ExOptionsPanel controls.
[ExDescription("The ExOptionsPanel controls on this ExOptionsView.", true)]
[ExCategory(CategoryType.Behavior)]
public Control.ControlCollection Panels { get; }
Property Value
SearchBox
Gets the SearchBox on this ExOptionsView.
[Browsable(false)]
public ExTextBox SearchBox { get; }
Property Value
SearchBoxVisible
Gets or sets visibility of the SearchBox.
[ExCategory(CategoryType.Appearance)]
public bool SearchBoxVisible { get; set; }
Property Value
SearchHighlightColor
Gets or sets background color of the controls whose text matches the search. Empty = light yellow on a light panel, dark amber on a dark one.
[ExCategory(CategoryType.Appearance)]
public Color SearchHighlightColor { get; set; }
Property Value
SelectedPanel
Gets or sets the selected (displayed) ExOptionsPanel.
[ExDescription("The selected (displayed) ExOptionsPanel.", true)]
[ExCategory(CategoryType.Behavior)]
public ExOptionsPanel? SelectedPanel { get; set; }
Property Value
ToolStripMenu
Gets the ToolStrip on this ExOptionsView.
[TypeConverter(typeof(ExpandableObjectConverter))]
[ExCategory(CategoryType.Layout)]
public ToolStrip ToolStripMenu { get; }
Property Value
TreeView
Gets the TreeView on this ExOptionsView.
[TypeConverter(typeof(ExpandableObjectConverter))]
[ExCategory(CategoryType.Layout)]
public ExOptionsView.ExOptionsTreeView TreeView { get; }
Property Value
TreeWidth
Gets or sets width of the tree with the search box (left part of the view).
[ExCategory(CategoryType.Layout)]
public int TreeWidth { get; set; }
Property Value
Methods
ApplyTheme(ExTheme)
Sets the colors and appearance of the control by the theme.
public void ApplyTheme(ExTheme theme)
Parameters
themeExTheme
BeginInit()
Signals the object that initialization is starting.
public void BeginInit()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed; otherwise, false.
EndInit()
Signals the object that initialization is complete.
public void EndInit()
OnLoad(EventArgs)
Raises the Load event.
protected override void OnLoad(EventArgs e)
Parameters
OnSelectedPanelChanged()
When the selected panel changes, display it.
protected virtual void OnSelectedPanelChanged()
OnSizeChanged(EventArgs)
Raises the SizeChanged event.
protected override void OnSizeChanged(EventArgs e)
Parameters
ShowPanel(string)
Search and select specific panel by its name (not NodeText). If panel was not found, do nothing.
public void ShowPanel(string name)
Parameters
namestringname of panel.
Events
SelectedPanelChanged
Occurs when a panel is selected (displayed) through the SelectedPanel property.
public event EventHandler? SelectedPanelChanged