Table of Contents

Class ExOptionsPanel

Namespace
ExControls
Assembly
ExControls.dll

Represents a panel in the ExOptionsView containing one set of options.

[TypeConverter(typeof(ExOptionsPanelConverter))]
public class ExOptionsPanel : Panel, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable
Inheritance
ExOptionsPanel
Implements
Inherited Members
Extension Methods

Constructors

ExOptionsPanel()

Initializes a new instance of the ExOptionsPanel class that fills its parent; the owning view is looked up among the parent controls.

public ExOptionsPanel()

ExOptionsPanel(ExOptionsView)

Initializes a new instance of the ExOptionsPanel class that belongs to the specified view.

public ExOptionsPanel(ExOptionsView owner)

Parameters

owner ExOptionsView

The view to which the panel belongs.

Properties

GenerateLinksToChildren

Gets or sets whether the panel shows links to its child panels.

[ExCategory(CategoryType.Appearance)]
[ExDescription("", true)]
public bool GenerateLinksToChildren { get; set; }

Property Value

bool

Node

Gets or sets the node corresponding to this panel. Should not be used during run-time.

[ExCategory("Nodes")]
[ExDescription("The OptionsNode that corresponds to this panel.")]
[TypeConverter(typeof(ExpandableObjectConverter))]
public OptionsNode Node { get; set; }

Property Value

OptionsNode

NodeText

Gets or sets the text of the node.

[ExCategory("Nodes")]
public string NodeText { get; set; }

Property Value

string

Owner

Gets the ExOptionsView to which this panel belongs.

public ExOptionsView? Owner { get; }

Property Value

ExOptionsView

The owning view, looked up among the parent controls if it was not set; null if the panel is not placed in a view.

ParentNode

Gets or sets the parent OptionsNode. Set this to create child option panels.

[ExCategory("Nodes")]
[ExDescription("The parent node for the node corresponding to this panel. Set to create child option panels.")]
public OptionsNode? ParentNode { get; set; }

Property Value

OptionsNode

Methods

Generates link to panel if GenerateLinksToChildren is true.

public virtual void GenerateLinks()

HighlightMatches(string?, Color)

Highlights the labels, check boxes and radio buttons in the panel (including nested controls) whose text contains the specified text and removes the previous highlight. An empty text only removes the highlight.

public int HighlightMatches(string? text, Color color)

Parameters

text string

The text to search for.

color Color

The background color of the highlighted controls.

Returns

int

The number of highlighted controls.

OnChildrenChanged()

Raises the ChildrenChanged event and regenerates the links if GenerateLinksToChildren is true.

protected virtual void OnChildrenChanged()

OnNodeTextChanged()

Raises the NodeTextChanged event.

protected virtual void OnNodeTextChanged()

OnParentNodeChanged()

Raises the ParentNodeChanged event.

protected virtual void OnParentNodeChanged()

Removes links in panel if GenerateLinksToChildren is true.

public virtual void RemoveLinks()

Search(string)

Determines whether a control in the panel (including nested controls) or the node text contains the specified text.

public bool Search(string text)

Parameters

text string

The text to search for.

Returns

bool

true if the text was found; otherwise, false.

Events

ChildrenChanged

Occurs when another panel sets its ParentNode to the node of this panel.

public event EventHandler? ChildrenChanged

Event Type

EventHandler

NodeTextChanged

Occurs when the NodeText property changes.

public event EventHandler? NodeTextChanged

Event Type

EventHandler

ParentNodeChanged

Occurs when the ParentNode property is set.

public event EventHandler? ParentNodeChanged

Event Type

EventHandler