selFontUnderlineType

Type: Byte

Availability: Not available at design time, read or write at run time

The selFontUnderlineType property of the JadeRichText control specifies whether the underline font attribute is applied to the selected text and the form in which the underline is drawn. The use of this property is the same as selFontUnderline, except that it also controls the style in which the underline is drawn.

Only use one of the selFontUnderline and selFontUnderlineType properties when defining the underline settings.

The setting of the selFontUnderlineType property can be one of the JadeRichText class constants listed in the following table.

JadeRichText Class Constant Value

Comment

Underline_Type_None 0.Byte

No underline is drawn (equivalent to selFontUnderline := false)

Underline_Type_Underline 1.Byte

Standard underline (equivalent to selFontUnderline := true)

Underline_Type_Dotted 4.Byte

Underline is dotted

Underline_Type_Dash 5.Byte

Underline is dashed

Underline_Type_DashDot 6.Byte

Underline is dash, dot repeated

Underline_Type_DashDotDot 7.Byte

Underline is dash, dot, dot repeated

Underline_Type_Wave 8.Byte

Underline is a wavy line

Underline_Type_Thick 9.Byte Underline is thick (doubled)
Underline_Type_Invert 254.Byte Underline is an inverted color line

If the selected text contains more than one underline type, the selFontUnderlineType property is set to an undefined value. Other values are undefined but will mostly be drawn as a standard underline.

The following code fragments are examples of the selFontUnderlineType property.

rtfControl.selStart := 10;
rtfControl.selLength := 6;
rtfControl.selFontUnderlineType := JadeRichText.Underline_Type_Wave;
// underlines the characters 10 through 15 in the control with a wavy line

rtfControl.selFontUnderlineType := JadeRichText.Underline_Type_Dotted;
rtfControl.load("Monday ", JadeRichText.Load_Append);
// underlines the appended text 'Monday' with a dotted line.