Table of Contents

Method SetSelectionStyle

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

SetSelectionStyle(ITextBoxTextAttr)

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

public virtual bool SetSelectionStyle(ITextBoxTextAttr style)

Parameters

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.