Class
FormattedTextSegment

Base class for text-based segments with formatting properties

Definition

Namespace:Telerik.Documents.AI.Tools.Fixed.Core.Models.ContentSegments

Assembly:Telerik.Documents.AI.Tools.Fixed.Core.dll

Syntax:

cs-api-definition
public abstract class FormattedTextSegment : ContentSegment

Inheritance: objectContentSegmentFormattedTextSegment

Derived Classes: LineSegmentRunSegment

Inherited Members ContentSegment.SegmentType

Constructors

FormattedTextSegment()

Declaration

cs-api-definition
protected FormattedTextSegment()

Properties

BaselineAlignment

Baseline alignment: 'Baseline', 'Subscript', or 'Superscript'. Default is 'Baseline'.

Declaration

cs-api-definition
public string BaselineAlignment { get; set; }

Property Value

string

Bold

Whether the text should be bold. Default is false.

Declaration

cs-api-definition
public bool Bold { get; set; }

Property Value

bool

FontFamily

Font family name. Supported: 'Arial', 'Helvetica', 'Times', 'Times New Roman', 'Courier', 'Courier New'. Default is 'Arial'.

Declaration

cs-api-definition
public string FontFamily { get; set; }

Property Value

string

FontSize

Font size in points. Default is 12.

Declaration

cs-api-definition
public double FontSize { get; set; }

Property Value

double

HighlightColor

Highlight color in hex format (e.g., '#FFFF00' for yellow). Leave empty for no highlight.

Declaration

cs-api-definition
public string HighlightColor { get; set; }

Property Value

string

HorizontalAlignment

Horizontal alignment of the paragraph containing this text: 'Left', 'Center', 'Right', 'Justified'. Leave empty to keep current alignment.

Declaration

cs-api-definition
public string HorizontalAlignment { get; set; }

Property Value

string

Italic

Whether the text should be italic. Default is false.

Declaration

cs-api-definition
public bool Italic { get; set; }

Property Value

bool

Strikethrough

Strikethrough style: 'None' or 'Single'. Default is 'None'.

Declaration

cs-api-definition
public string Strikethrough { get; set; }

Property Value

string

Text

The text content to add

Declaration

cs-api-definition
public string Text { get; set; }

Property Value

string

TextColor

Text color in hex format (e.g., '#FF0000' for red). Default is black.

Declaration

cs-api-definition
public string TextColor { get; set; }

Property Value

string

Underline

Underline style: 'None' or 'Single'. Default is 'None'.

Declaration

cs-api-definition
public string Underline { get; set; }

Property Value

string