letterSpacing Property

Microsoft FrontPage Visual Basic

Show All Show All

letterSpacing Property

ShowAs 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:

ValueDescription
normalDefault spacing.
lengthFloating-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.

ShowAs 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

ShowAs 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"