ClassFormattedTextSegment
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:
public abstract class FormattedTextSegment : ContentSegment
Inheritance: objectContentSegmentFormattedTextSegment
Derived Classes:
Inherited Members
Constructors
FormattedTextSegment()
Declaration
protected FormattedTextSegment()
Properties
BaselineAlignment
Baseline alignment: 'Baseline', 'Subscript', or 'Superscript'. Default is 'Baseline'.
Bold
Whether the text should be bold. Default is false.
FontFamily
Font family name. Supported: 'Arial', 'Helvetica', 'Times', 'Times New Roman', 'Courier', 'Courier New'. Default is 'Arial'.
FontSize
Font size in points. Default is 12.
HighlightColor
Highlight color in hex format (e.g., '#FFFF00' for yellow). Leave empty for no highlight.
HorizontalAlignment
Horizontal alignment of the paragraph containing this text: 'Left', 'Center', 'Right', 'Justified'. Leave empty to keep current alignment.
Italic
Whether the text should be italic. Default is false.
Strikethrough
Strikethrough style: 'None' or 'Single'. Default is 'None'.
Text
The text content to add
TextColor
Text color in hex format (e.g., '#FF0000' for red). Default is black.