Поделиться через


Font.DoubleStrikeThrough Property (Word)

True if the specified font is formatted as double strikethrough text. .

Syntax

expression .DoubleStrikeThrough

expression A variable that represents a Font object.

Remarks

Returns True, False, or wdUndefined (a mixture of True and False). Can be set to True, False, or wdToggle. Read/write Long.To set or return single-line strikethrough formatting, use the StrikeThrough property. Setting DoubleStrikeThrough to True sets StrikeThrough to False, and vice versa.

Example

This example applies double strikethrough formatting to the selected text.

If Selection.Type = wdSelectionNormal Then 
 Selection.Font.DoubleStrikeThrough = True 
Else 
 MsgBox "You need to select some text." 
End If

This example removes double strikethrough formatting from the first word in the active document and capitalizes the first letter in the word.

With ActiveDocument.Words(1) 
 .Font.DoubleStrikeThrough = False 
 .Case = wdTitleSentence 
End With

See Also

Concepts

Font Object

Font Object Members