TXTextControl.Selection.FontSize Property

Gets or sets the font's size, in twips, of the selected text.

Syntax

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

Remarks

The property's default value is 200 twips, which equals 10 point.

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

Limitations

Runtime only.

See Also