TXLSXChartTextStyle controla las propiedades de texto DrawingML de los títulos de gráficos, las etiquetas de leyenda, los títulos de ejes y las etiquetas de las marcas de los ejes
Declaration
type
TXLSXChartTextStyle = class
property Name: WideString;
property Size: Double;
property Color: LongWord;
property HasColor: Boolean;
property Bold, Italic, Underline, Strikeout: Boolean;
property Rotation: Double;
procedure Assign(Source: TXLSXChartTextStyle);
procedure Clear;
procedure ClearColor;
function IsDefault: Boolean;
end;
Properties
| Name | Latin typeface name or theme font token |
| Size | Point size, where zero inherits the chart theme |
| Color and HasColor | Explicit RGB text colour and its presence flag |
| Bold, Italic, Underline and Strikeout | Typed emphasis switches written as DrawingML character properties |
| Rotation | Text rotation in degrees, serialized in native DrawingML angle units |
Usage
Chart-owned instances are available through TitleTextStyle and LegendTextStyle Axis-owned instances are available through TextStyle and TitleTextStyle
ClearColor devuelve la selección de color al tema del gráfico sin cambiar las demás propiedades de texto Clear returns the complete style to inherited defaults
Example
Chart.TitleTextStyle.Name := 'Aptos Display';
Chart.TitleTextStyle.Size := 18;
Chart.TitleTextStyle.Color := $204080;
Chart.TitleTextStyle.Bold := True;
Chart.CategoryAxis.TextStyle.Rotation := -45;
See also