Table of Contents

Class IWxTextBoxHandlerExtensions

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

Provides extension methods for the IWxTextBoxHandler interface to manipulate text formatting and styles.

public static class IWxTextBoxHandlerExtensions
Inheritance
IWxTextBoxHandlerExtensions

Remarks

These extension methods enable additional functionality for IWxTextBoxHandler instances, such as clearing text formatting and toggling font styles for selected text or the insertion point. They are designed to work with text boxes in rich edit mode.

Methods

AppendTextAndStyles(IWxTextBoxHandler, IEnumerable<object>)

Appends text and styles to the end of the text control.

ClearTextFormatting(IWxTextBoxHandler)

Clears text formatting when TextBox is in rich edit mode.

DoCommand(IWxTextBoxHandler, string, params object?[])

Executes a browser command with the specified name and parameters.

SelectionAlignCenter(IWxTextBoxHandler)

Sets text alignment in the current position to Center

SelectionAlignJustified(IWxTextBoxHandler)

Sets text alignment in the current position to Justified

SelectionAlignLeft(IWxTextBoxHandler)

Sets text alignment in the current position to Left

SelectionAlignRight(IWxTextBoxHandler)

Sets text alignment in the current position to Right

SelectionSetAlignment(IWxTextBoxHandler, TextBoxTextAttrAlignment)

Sets text alignment in the current position to alignment.

SelectionSetColor(IWxTextBoxHandler, Color?, Color?)

Sets foreground and background colors of the selection. If no text is selected, style of the insertion point is changed.

SelectionToggleBold(IWxTextBoxHandler)

Toggles Bold style of the selection. If no text is selected, style of the insertion point is changed.

SelectionToggleFontStyle(IWxTextBoxHandler, FontStyle)

Toggles FontStyle of the selection. If no text is selected, style of the insertion point is changed.

SelectionToggleItalic(IWxTextBoxHandler)

Toggles Italic style of the selection. If no text is selected, style of the insertion point is changed.

SelectionToggleStrikethrough(IWxTextBoxHandler)

Toggles Strikeout style of the selection. If no text is selected, style of the insertion point is changed.

SelectionToggleUnderline(IWxTextBoxHandler)

Toggles Underline style of the selection. If no text is selected, style of the insertion point is changed.

SetSelectionStyle(IWxTextBoxHandler, ITextBoxTextAttr)

Changes the style of selection (if any). If no text is selected, style of the insertion point is changed.