In This Article

SearchOverlayPane Class

Represents an IOverlayPane implementation that can be used to perform searching within an editor.

public class SearchOverlayPane : SearchViewBase, IUIControl, IUIElement, ILogicalTreeNode, IDpiAwareElement, IDisposable, IOverlayPane, IKeyedObject
Inheritance:
object MarshalByRefObject Component Control ScrollableControl UIControl SearchViewBase object
Implements:
IUIControl IUIElement ILogicalTreeNode IDpiAwareElement IDisposable IOverlayPane IKeyedObject

Constructors

SearchOverlayPane(IEditorView)

Initializes an instance of the class.

public SearchOverlayPane(IEditorView view)
Parameter Type Description
view IEditorView

The view that owns the pane.

Properties

CloseCommand

The ICommand that closes the pane.

public ICommand CloseCommand { get; }

Property Value

ICommand

FindAllButton

The find all button.

protected override CommandButton? FindAllButton { get; }

Property Value

CommandButton

InstanceKind

The OverlayPaneInstanceKind that indicates how many instances of the pane are permitted across all views.

public virtual OverlayPaneInstanceKind InstanceKind { get; }

Property Value

OverlayPaneInstanceKind:

The default value is Single.

Key

The string-based key that identifies the object.

public string Key { get; }

Property Value

string

MatchCaseButton

The match case button.

protected override CommandButton? MatchCaseButton { get; }

Property Value

CommandButton

MatchWholeWordButton

The match whole word button.

protected override CommandButton? MatchWholeWordButton { get; }

Property Value

CommandButton

ModeToggleButton

The mode toggle button.

protected override CommandButton? ModeToggleButton { get; }

Property Value

CommandButton

ReplaceAllButton

The replace all button.

protected override CommandButton? ReplaceAllButton { get; }

Property Value

CommandButton

ReplaceNextButton

The replace next button.

protected override CommandButton? ReplaceNextButton { get; }

Property Value

CommandButton

SearchScopeComboBox

The search scope combobox.

protected override ComboBox? SearchScopeComboBox { get; }

Property Value

ComboBox

SearchUpButton

The search up button.

protected override CommandButton? SearchUpButton { get; }

Property Value

CommandButton

TargetView

The target IEditorView in which the searching will occur.

public override IEditorView TargetView { get; }

Property Value

IEditorView

UseRegularExpressionsButton

The use regular expressions button.

protected override CommandButton? UseRegularExpressionsButton { get; }

Property Value

CommandButton

VisualElement

The Control that is used to visually render the pane.

public Control VisualElement { get; }

Property Value

Control

Methods

Activate()

Activates the pane, called when the pane is already open to perform tasks like moving focus into itself.

public void Activate()

ArrangeChildren()

Arranges the children.

protected override void ArrangeChildren()

Close()

Closes the pane.

public void Close()

DpiScaleChanged(SizeF)

Called when the DPI-based scale factor of the element changes.

public override void DpiScaleChanged(SizeF scaleFactor)
Parameter Type Description
scaleFactor SizeF

The new scale factor where Width is applied to the x-axis, and Height is applied to the y-axis.

See Also

InitializeChildren()

Initializes the children.

protected override void InitializeChildren()

IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

protected override bool IsInputKey(Keys keyData)
Parameter Type Description
keyData Keys

One of the Keys values.

Returns

bool:

true if the specified key is a regular input key; otherwise, false.

MeasureOverride(Graphics?, Size)

Measures the size in layout required for child elements and determines a size for the element itself.

protected override Size MeasureOverride(Graphics? g, Size availableSize)
Parameter Type Description
g Graphics

The Graphics object to use for measurement.

availableSize Size

The available size that this element can give to child elements. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

Returns

Size:

The size that this element determines it needs during layout, based on its calculations of child element sizes.

Remarks

Element authors should override this method, call Measure(Graphics?, Size) on each visible child element and determine the total size required.

OnClosed()

Occurs when the pane is closed.

protected virtual void OnClosed()

OnEnter(EventArgs)

Raises the Enter event.

protected override void OnEnter(EventArgs e)
Parameter Type Description
e EventArgs

An EventArgs that contains the event data.

OnFindSearchOptionsChanged()

Occurs when a search option is changed that may affect find results, such as those used for search result highlighting.

protected override void OnFindSearchOptionsChanged()

OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

protected override void OnKeyDown(KeyEventArgs e)
Parameter Type Description
e KeyEventArgs

A KeyEventArgs that contains the event data.

OnRender(PaintEventArgs)

Renders the element.

protected override void OnRender(PaintEventArgs e)
Parameter Type Description
e PaintEventArgs

The event data.

OnSearchScopeChanged()

Occurs when the search scope has changed.

protected override void OnSearchScopeChanged()

ProcessCmdKey(ref Message, Keys)

Processes a command key.

protected override bool ProcessCmdKey(ref Message msg, Keys keyData)
Parameter Type Description
msg Message

A Message, passed by reference, that represents the window message to process.

keyData Keys

One of the Keys values that represents the key to process.

Returns

bool:

true if the character was processed by the control; otherwise, false.

ProcessDialogKey(Keys)

Processes a dialog key.

protected override bool ProcessDialogKey(Keys keyData)
Parameter Type Description
keyData Keys

One of the Keys values that represents the key to process.

Returns

bool:

true if the key was processed by the control; otherwise, false.

RaiseCanExecuteChangedForCommands()

Raise the can-execute changed events for commands.

protected override void RaiseCanExecuteChangedForCommands()

Events

Closed

Occurs when the pane is closed.

public event EventHandler? Closed

Event Type

EventHandler

Inherited Members

Extension Methods