Method SetSelectionStyle
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
handlerIWxTextBoxHandlerThe IWxTextBoxHandler instance.
styleITextBoxTextAttrThe new text style.
Returns
- bool
trueon success,falseif 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.