HotXLS BelgeleriİçindekilerXLSX FacadeAna sayfaİçindekilerTXLSXCell

TXLSXRichText and TXLSXRichTextRun classes

TXLSXRichText stores styled text runs for TXLSXCell.RichText and comment rich text in the XLSX façade

Declarations

type TXLSXRichText = class function AddRun: TXLSXRichTextRun; function AddRunText(const AText: WideString): TXLSXRichTextRun; procedure Clear; function PlainText: WideString; property RunCount: Integer; property Runs[Index: Integer]: TXLSXRichTextRun; end; TXLSXRichTextRun = class property Text, Name: WideString; property Size: Double; property Bold, Italic, Strikethrough, ColorIsAuto: Boolean; property Underline: TXLSXUnderline; property Color: LongWord; property VertAlign: TXLSXFontVertAlign; end;

Key üyeleri

AddRun and AddRunTextAppend an empty run or a run with initial textPlainTextDöndürür the concatenated text without style informationName, Size, Bold, Italic and StrikethroughFont family, size and basic style attributes for one runUnderline, Color and ColorIsAutoUnderline and colour choices for the runVertAlignBaseline, subscript or superscript vertical alignment

Örnek

var Rich: TXLSXRichText; begin Rich := TXLSXRichText.Create; Rich.AddRunText('Quarterly '); Rich.AddRunText('Report').Bold := True; Sheet.Cells[1, 1].RichText := Rich; end;

Ayrıca bkz.

Copyright © 2010-2026 losLab Software