Constructor TextFragmentData
TextFragmentData(int, int, double, Brush, Brush, string, Typeface)
Initializes a new instance of the TextFragmentData class with specified parameters.
public TextFragmentData(int textStartIndex, int textLength, double textWidth, Brush foregroundColor, Brush backgroundColor, string overrideText, Typeface typeface)
Parameters
textStartIndexintSpecifies start text index of the fragment.
textLengthintSpecifies text length of the fragment.
textWidthdoubleSpecifies text width of the fragment.
foregroundColorBrushSpecifies brash to paint foreground of the text fragment.
backgroundColorBrushSpecifies brash to paint background of the text fragment.
overrideTextstringSpecifies text should be displayed instead of original text.
typefaceTypefaceTypeface describes this fragment.