Table of Contents

Method SelectionSetColor

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

SelectionSetColor(IWxTextBoxHandler, Color?, Color?)

Sets foreground and background colors of the selection. If no text is selected, style of the insertion point is changed.

public static bool SelectionSetColor(this IWxTextBoxHandler handler, Color? textColor, Color? backColor = null)

Parameters

handler IWxTextBoxHandler

The IWxTextBoxHandler instance.

textColor Color

Foreground color.

backColor Color

Background color.

Returns

bool

Remarks

If any of the color parameters is null, it will not be changed.