Table of Contents

Method SetStyle

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

SetStyle(long, long, ITextBoxTextAttr)

Changes the style of the given range.

bool SetStyle(long start, long end, ITextBoxTextAttr style)

Parameters

start long

The start of the range to change.

end long

The end of the range to change.

style ITextBoxTextAttr

The new style for the range.

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.