Table of Contents

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

Color

HeaderNodeNameFont

Gets or sets font of header panel name.

[ExCategory(CategoryType.Appearance)]
public Font HeaderNodeNameFont { get; set; }

Property Value

Font

HeaderNodeNameForeColor

Gets or sets foreground color of node name label.

[ExCategory(CategoryType.Appearance)]
public Color HeaderNodeNameForeColor { get; set; }

Property Value

Color

HeaderNodeNameVisible

Gets or sets visibility of the Header node name.

[ExCategory(CategoryType.Appearance)]
public bool HeaderNodeNameVisible { get; set; }

Property Value

bool

LinkToChildrenForeColor

Gets or sets foreground color of generated links for children.

[ExCategory(CategoryType.Appearance)]
public Color LinkToChildrenForeColor { get; set; }

Property Value

Color

PanelContainer

Gets the panel that contains the OptionsPanels on this ExOptionsView.

public OptionsPanelContainer PanelContainer { get; }

Property Value

OptionsPanelContainer

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

Control.ControlCollection

Gets the SearchBox on this ExOptionsView.

[Browsable(false)]
public ExTextBox SearchBox { get; }

Property Value

ExTextBox

SearchBoxVisible

Gets or sets visibility of the SearchBox.

[ExCategory(CategoryType.Appearance)]
public bool SearchBoxVisible { get; set; }

Property Value

bool

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

Color

SelectedPanel

Gets or sets the selected (displayed) ExOptionsPanel.

[ExDescription("The selected (displayed) ExOptionsPanel.", true)]
[ExCategory(CategoryType.Behavior)]
public ExOptionsPanel? SelectedPanel { get; set; }

Property Value

ExOptionsPanel

ToolStripMenu

Gets the ToolStrip on this ExOptionsView.

[TypeConverter(typeof(ExpandableObjectConverter))]
[ExCategory(CategoryType.Layout)]
public ToolStrip ToolStripMenu { get; }

Property Value

ToolStrip

TreeView

Gets the TreeView on this ExOptionsView.

[TypeConverter(typeof(ExpandableObjectConverter))]
[ExCategory(CategoryType.Layout)]
public ExOptionsView.ExOptionsTreeView TreeView { get; }

Property Value

ExOptionsView.ExOptionsTreeView

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

int

Methods

ApplyTheme(ExTheme)

Sets the colors and appearance of the control by the theme.

public void ApplyTheme(ExTheme theme)

Parameters

theme ExTheme

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

disposing bool

true 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

e EventArgs

An EventArgs that contains the event data.

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

e EventArgs

An EventArgs that contains the event data.

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

name string

name of panel.

Events

SelectedPanelChanged

Occurs when a panel is selected (displayed) through the SelectedPanel property.

public event EventHandler? SelectedPanelChanged

Event Type

EventHandler