Back to Devexpress

ShapeTextFont.Color Property

officefileapi-devexpress-dot-spreadsheet-dot-drawings-dot-shapetextfont.md

latest3.1 KB
Original Source

ShapeTextFont.Color Property

Gets or sets the color of the font applied to the text.

Namespace : DevExpress.Spreadsheet.Drawings

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
Color Color { get; set; }
vb
Property Color As Color

Property Value

TypeDescription
Color

A Color structure that specifies the font color.

|

Remarks

Note

Not all ShapeTextFont properties have effect on the visual appearance of chart elements when a document is loaded in the SpreadsheetControl. However, you can set these properties in code, save the document in a supported format and display it in Microsoft Excel.

The following code snippets (auto-collected from DevExpress Examples) contain references to the Color property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

winforms-spreadsheet-chart-api/CS/SpreadsheetChartAPISamples/CodeExamples/StyleActions.cs#L41

csharp
chart.Font.Bold = true;
chart.Font.Color = Color.Navy;

spreadsheet-document-api-chart-examples/CS/SpreadsheetDocServerChartAPISamples/CodeExamples/StyleActions.cs#L45

csharp
chart.Font.Bold = true;
chart.Font.Color = Color.Navy;

spreadsheet-document-api-chart-examples/VB/SpreadsheetDocServerChartAPISamples/CodeExamples/StyleActions.vb#L49

vb
chart.Font.Bold = True
            chart.Font.Color = Color.Navy
#End Region ' #SetChartFont

See Also

ShapeTextFont Interface

ShapeTextFont Members

DevExpress.Spreadsheet.Drawings Namespace