Back to DOM
StrikValueEnum
Definition
- Namespace
- DOM.Enums
- Assembly
- DOM.dll
Specifies the type of strike-through applied to text.
Remarks
Used by the property to indicate whether the text should be drawn with a single line, two parallel lines, or no strike-through at all. Font.Strike Strike-through is typically used to mark deleted or revised text, or to strike out items in a to-do list.
Examples
csharp
1// 1. No strike-through (default)
2var font = new Font { Strike = StrikValue.NoStrike };
3
csharp
1// 2. Single strike-through for revisions
2var font = new Font { Strike = StrikValue.SingleStrike, Color = Color.Gray };
3
csharp
1// 3. Double strike-through for emphatic deletion
2var font = new Font { Strike = StrikValue.DoubleStrike, Color = Color.Red };
3
csharp
1// 4. Combine with underline for revised legal text
2var font = new Font
3{
4 Strike = StrikValue.SingleStrike,
5 Underline = new Underline { LineValue = UnderlineValues.Single }
6};
7
Fields
DoubleStrike
Double-line strike-through.
NoStrike
No strike-through.
SingleStrike
Single-line strike-through.