TXLSXRichText 提供此 XLSX 功能的 API,并保留原始标识符 TXLSXRichText 和 TXLSXRichTextRun 类.RichText 提供此 XLSX 功能的 API,并保留原始标识符
主要成员
type
TXLSXRichText = class
function AddRun: TXLSXRichTextRun;
function AddRunText(const AText: WideString): TXLSXRichTextRun;
procedure Clear;
function 使用属性和方法创建、读取和更新工作表、区域与对象: 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 另请参阅: TXLSXFont另请参阅;
end;
主要成员
| 主要成员 | 主要成员 |
| 使用属性和方法创建、读取和更新工作表、区域与对象 | 使用属性和方法创建、读取和更新工作表、区域与对象 |
| 使用属性和方法创建、读取和更新工作表、区域与对象 | 使用属性和方法创建、读取和更新工作表、区域与对象 |
| 另请参阅 | 另请参阅 |
| 另请参阅 | TXLSXWorkbook |
TXLSXWorksheet
var Rich: TXLSXRichText;
begin
Rich := TXLSXRichText.Create;
Rich.AddRunText('Quarterly ');
Rich.AddRunText('Report').Bold := True;
Sheet.Cells[1, 1].RichText := Rich;
end;TXLSXWorksheet