SelFontSize Property

       

Returns or sets a value that specifies the size of the font used to display text in a RichTextBox control. Not available at design time.

Syntax

object.SelFontSize [= points]

The SelFontSize property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
points An integer that specifies the size in points of the currently selected text or the characters immediately following the insertion point.

Remarks

The maximum value for SelFontSize is 2160 points.

In general, you should change the SelFontName property before you set the size and style attributes. However, when you set TrueType fonts to smaller than 8 points, you should set the point size to 3 with the SelFontSize property, then set the SelFontName property, and then set the size again with the SelFontSize property.

Note   Available fonts depend on your system configuration, display devices, and printing devices, and therefore may vary from system to system.

The SelFontSize property returns Null if the selected text contains different font sizes.