Table of Contents

Method ParseTextWithIndexAccel

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

ParseTextWithIndexAccel(string, int, FontStyle)

Splits text into three parts using the specified position of the accelerator character. Returns an array of three TextAndFontStyle elements.

public static TextAndFontStyle[] ParseTextWithIndexAccel(string text, int indexAccel, FontStyle accelStyle = FontStyle.Underline)

Parameters

text string

String to split into three parts.

indexAccel int

Position of the accelerator character.

accelStyle FontStyle

Style of the char on the indexAccel position.

Returns

TextAndFontStyle[]