Share via


textIndent Property

Sets or returns the indentation of text in an element.

expression.textIndent

*expression   * Required. An expression that returns one of the objects in the Applies To list.

Remarks

The textIndent property can be one of the following:

length Sets the horizontal or vertical position of the background image to an exact location. Floating-point number, followed by an absolute units designator (cm, mm, in, pt, pc, or px) or a relative units designator (em or ex).
percentage Integer, followed by a percent sign (%). The value is a percentage of the width or height of the object.

Example

The following example indents the left edge of text in the active document to 25 pixels from the left edge of the document.

Dim objStyle As FPHTMLStyle

Set objStyle = ActiveDocument.body.Style
objStyle.textIndent = "25px"

Applies to | FPHTMLStyle Object | IFPStyleState Object | IHTMLRuleStyle Object | IHTMLStyle Object