officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-356ba886.md
Gets or sets a value indicating whether characters are strikeout.
Namespace : DevExpress.XtraRichEdit.API.Native
Assembly : DevExpress.RichEdit.v25.2.Core.dll
NuGet Package : DevExpress.RichEdit.Core
StrikeoutType? Strikeout { get; set; }
Property Strikeout As StrikeoutType?
| Type | Description |
|---|---|
| Nullable<StrikeoutType> |
A StrikeoutType enumeration value or null , for a mixture of strikeout types.
|
Available values:
| Name | Description |
|---|---|
| None |
Indicates that the text strikeout is disabled.
| | Single |
Specifies the single strikeout.
| | Double |
Specifies the double strikeout.
|
Use the CharacterProperties interface to change character formatting.
The following code snippets (auto-collected from DevExpress Examples) contain references to the Strikeout 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-richedit-document-api/CS/RichEditAPISample/CodeExamples/Styles.cs#L23
cstyle.ForeColor = System.Drawing.Color.DarkOrange;
cstyle.Strikeout = StrikeoutType.Double;
cstyle.FontName = "Verdana";
wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/StylesActions.cs#L23
cstyle.ForeColor = System.Drawing.Color.DarkOrange;
cstyle.Strikeout = StrikeoutType.Double;
cstyle.FontName = "Verdana";
word-document-api-examples/CS/CodeExamples/StylesActions.cs#L37
cstyle.ForeColor = System.Drawing.Color.DarkOrange;
cstyle.Strikeout = StrikeoutType.Double;
cstyle.FontName = "Verdana";
winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Styles.vb#L21
cstyle.ForeColor = System.Drawing.Color.DarkOrange
cstyle.Strikeout = DevExpress.XtraRichEdit.API.Native.StrikeoutType.[Double]
cstyle.FontName = "Verdana"
wpf-richedit-document-api/VB/DXRichEditControlAPISample/CodeExamples/StylesActions.vb#L19
cstyle.ForeColor = System.Drawing.Color.DarkOrange
cstyle.Strikeout = StrikeoutType.Double
cstyle.FontName = "Verdana"
word-document-api-examples/VB/CodeExamples/StylesActions.vb#L34
cstyle.ForeColor = System.Drawing.Color.DarkOrange
cstyle.Strikeout = DevExpress.XtraRichEdit.API.Native.StrikeoutType.[Double]
cstyle.FontName = "Verdana"
winforms-spreadsheet-how-to-edit-rich-text/VB/SpreadsheetRichText/RichTextEditForm.vb#L25
cp.FontSize = CSng(run.Font.Size)
cp.Strikeout = If(run.Font.Strikethrough, StrikeoutType.Single, StrikeoutType.None)
Select Case run.Font.Script
See Also
ToggleFontDoubleStrikeoutCommand
CharacterPropertiesBase Interface