Table of Contents

Constructor TextFragmentData

Namespace
Alternet.Editor.Wpf
Assembly
Alternet.Editor.Wpf.v9.dll

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 int

Specifies start text index of the fragment.

textLength int

Specifies text length of the fragment.

textWidth double

Specifies text width of the fragment.

foregroundColor Brush

Specifies brash to paint foreground of the text fragment.

backgroundColor Brush

Specifies brash to paint background of the text fragment.

overrideText string

Specifies text should be displayed instead of original text.

typeface Typeface

Typeface describes this fragment.