Method ParseTextWithIndexAccel
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
textstringString to split into three parts.
indexAccelintPosition of the accelerator character.
accelStyleFontStyleStyle of the char on the
indexAccelposition.