letterSpacing Property
As it applies to the FPHTMLStyle and IHTMLRuleStyle objects
Returns or sets a Variant that represents the amount of space between letters in the specified object.
expression.letterSpacing
expression Required. An expression that returns one of the objects in the Applies To list.
Remarks
The String for the letterSpacing property can be one of the following values:
Value | Description |
---|---|
normal | Default spacing. |
length | Floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex). For more information about the supported length units, see CSS Length Units. |
As it applies to the IFPStyleState object.
Returns or sets an IFPStyleLength object that represents the amount of space between letters in the specified object.
expression.letterSpacing
expression Required. An expression that returns one of the objects in the Applies To list.
Example
As it relates to the FPHTMLStyle object
The following example sets the spacing for the letters in the first paragraph in the active document to 5 pixels.
Dim objPara As FPHTMLParaElement
Set objPara = ActiveDocument.all.tags("p").Item(0)
objPara.Style.letterSpacing = "5px"