RichTextRunFont.Strikethrough Property
Gets or sets a value indicating whether the current text run is formatted as strikethrough.
Namespace: DevExpress.Spreadsheet
Assembly: DevExpress.Spreadsheet.v24.1.Core.dll
NuGet Package: DevExpress.Spreadsheet.Core
Declaration
Property Value
Type | Description |
---|---|
Boolean | true, if the strikethrough format is applied to a text region; otherwise, false. |
Remarks
The RichTextRunFont object’s properties allow you to specify font settings for individual regions of the cell text (so-called text runs defined by the RichTextRun objects).
You can do one of the following to apply rich formatting to a portion of the cell text:
- Explicitly add a text run to the rich text string and set the run’s font settings using the RichTextString.AddTextRun method.
- Use the RichTextString.Characters method to format specific characters within the cell text. This method returns the RichTextRange object that represents the specified text subset and allows you to set its font characteristics using the RichTextRange.SetFont method.
Call the CellRange.SetRichText method to assign the rich formatted text to a cell.
To view font settings applied to an existing run, use the run’s RichTextRun.Font property.
Refer to the How to: Apply Rich Formatting to Cell Text document for examples on how to apply different fonts to specific regions of the cell text.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Strikethrough 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.