Back to Devexpress

CharacterPropertiesBase.Strikeout Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-characterpropertiesbase-356ba886.md

latest5.3 KB
Original Source

CharacterPropertiesBase.Strikeout Property

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

Declaration

csharp
StrikeoutType? Strikeout { get; set; }
vb
Property Strikeout As StrikeoutType?

Property Value

TypeDescription
Nullable<StrikeoutType>

A StrikeoutType enumeration value or null , for a mixture of strikeout types.

|

Available values:

NameDescription
None

Indicates that the text strikeout is disabled.

| | Single |

Specifies the single strikeout.

| | Double |

Specifies the double strikeout.

|

Remarks

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

csharp
cstyle.ForeColor = System.Drawing.Color.DarkOrange;
cstyle.Strikeout = StrikeoutType.Double;
cstyle.FontName = "Verdana";

wpf-richedit-document-api/CS/DXRichEditControlAPISample/CodeExamples/StylesActions.cs#L23

csharp
cstyle.ForeColor = System.Drawing.Color.DarkOrange;
cstyle.Strikeout = StrikeoutType.Double;
cstyle.FontName = "Verdana";

word-document-api-examples/CS/CodeExamples/StylesActions.cs#L37

csharp
cstyle.ForeColor = System.Drawing.Color.DarkOrange;
cstyle.Strikeout = StrikeoutType.Double;
cstyle.FontName = "Verdana";

winforms-richedit-document-api/VB/RichEditAPISample/CodeExamples/Styles.vb#L21

vb
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

vb
cstyle.ForeColor = System.Drawing.Color.DarkOrange
cstyle.Strikeout = StrikeoutType.Double
cstyle.FontName = "Verdana"

word-document-api-examples/VB/CodeExamples/StylesActions.vb#L34

vb
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

vb
cp.FontSize = CSng(run.Font.Size)
cp.Strikeout = If(run.Font.Strikethrough, StrikeoutType.Single, StrikeoutType.None)
Select Case run.Font.Script

See Also

ToggleFontStrikeoutCommand

ToggleFontDoubleStrikeoutCommand

ShowFontFormCommand

CharacterPropertiesBase Interface

CharacterPropertiesBase Members

DevExpress.XtraRichEdit.API.Native Namespace