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
textStartIndex
intSpecifies start text index of the fragment.
textLength
intSpecifies text length of the fragment.
textWidth
doubleSpecifies text width of the fragment.
foregroundColor
BrushSpecifies brash to paint foreground of the text fragment.
backgroundColor
BrushSpecifies brash to paint background of the text fragment.
overrideText
stringSpecifies text should be displayed instead of original text.
typeface
TypefaceTypeface describes this fragment.