Share via


Font.BaselineOffset Property

Returns or sets the baseline offset for the specified superscript or subscript characters. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property BaselineOffset As Single
    Get
    Set
'Usage
Dim instance As Font
Dim value As Single

value = instance.BaselineOffset

instance.BaselineOffset = value
float BaselineOffset { get; set; }

Property Value

Type: System.Single

Remarks

The BaselineOffset property value can be a floating-point value from – 1 through 1. A value of – 1 represents an offset of – 100 percent, and a value of 1 represents an offset of 100 percent.

Setting the BaselineOffset property to a negative value automatically sets the Subscript property to true and the Superscript property to false.

Setting the BaselineOffset property to a positive value automatically sets the Subscript property to false and the Superscript property to true.

Setting the Subscript property to true automatically sets the BaselineOffset property to 0.3 (30 percent).

Setting the Superscript property to true automatically sets the BaselineOffset property to – 0.25 ( – 25 percent).

See Also

Reference

Font Interface

Font Members

Microsoft.Office.Interop.PowerPoint Namespace