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


Font.Spacing Property (Word)

Returns or sets the spacing (in points) between characters. Read/write Single.

Syntax

expression .Spacing

expression Required. A variable that represents a Font object.

Example

This example demonstrates two different character spacings at the beginning of the active document.

Set myRange = ActiveDocument.Range(Start:=0, End:=0) 
With myRange 
 .InsertAfter "Demonstration of no character spacing." 
 .InsertParagraphAfter 
 .InsertAfter "Demonstration of character spacing (1.5pt)." 
 .InsertParagraphAfter 
End With 
ActiveDocument.Paragraphs(2).Range.Font.Spacing = 1.5

This example sets the character spacing of the selected text to 2 points.

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

See Also

Concepts

Font Object Members

Font Object