Table of Contents

Method SetSelectionStyle

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

SetSelectionStyle(IWxTextBoxHandler, ITextBoxTextAttr)

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

public static bool SetSelectionStyle(this IWxTextBoxHandler handler, ITextBoxTextAttr style)

Parameters

handler IWxTextBoxHandler

The IWxTextBoxHandler instance.

style ITextBoxTextAttr

The new text style.

Returns

bool

true on success, false if an error occurred (this may also mean that the styles are not supported under this platform).

Remarks

If any attribute within style is not set, the corresponding attribute from GetDefaultStyle() is used.