Right Property
Sets or returns an IFPStyleLength object that represents the right side of an element.
expression.Right
expression Required. An expression that returns one of the objects in the Applies To list.
Example
The following example creates a new IFPStyleState object and sets the value and units properties of its associated right IFPStyleLength object.
Sub SetStyleLength()
Dim objSs As IFPStyleState
Dim objDoc As FPHTMLDocument
Dim objRng As IHTMLTxtRange
Dim objS1 As IFPStyleLength
Set objDoc = Application.ActiveDocument
objDoc.body.innerHTML = "<h1>Heading 1</h1>"
Set objSs = objDoc.createStyleState
Set objRng = objDoc.body.createTextRange
objSs.gather objRng
Set objS1 = objSs.Right
objS1.units = fpLengthUnitsPT
objS1.Value = 4
objSs.Right = objS1
objSs.Apply
End Sub