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
text
stringString to split into three parts.
indexAccel
intPosition of the accelerator character.
accelStyle
FontStyleStyle of the char on the
indexAccel
position.