Table of Contents

Method SetDefaultStyle

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

SetDefaultStyle(ITextBoxTextAttr)

Changes the default style to use for the new text which is going to be added to the control using WriteText(string) or AppendText(string).

bool SetDefaultStyle(ITextBoxTextAttr style)

Parameters

style ITextBoxTextAttr

The style for the new text.

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 either of the font, foreground, or background colour is not set in style, the values of the previous default style are used for them. If the previous default style didn't set them neither, the global font or colors of the text control itself are used as fall back.