TXTextControl.Selection.Baseline Property

Gets or sets the baseline alignment, in twips, of the selected text. Positive values moves the baseline to superscript, negative values move the baseline to subscript.


public int Baseline { get; set; }
[Visual Basic]
Public Property Baseline() As Integer


The property's default value is 0.

The property returns its default value when the text selection contains multiple characters with mixed baseline settings. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.


Runtime only.

The property's value must be between -960 twips and 960 twips (48 pt).

See Also