Underline

Applies to

Controls that display text

Description

Underline is a property of text in a control.

Usage

This property does not work in MonthCalendar controls on the Microsoft Vista operating system.


In a painter

StepsTo underline all text items in a control:

  1. Select the Underline check box on the Font tab page of the control’s property page, or select the control and then click the U button on the StyleBar.

StepsTo underline a text object in a graph control:

  1. Display the Text tab page of the graph control’s Properties view and select the desired text object from the Text Object list.

  2. Select the Underline check box on the Text tab page.


In scripts

The Underline property takes a boolean value. The following example underlines the text in a StaticText control:

st_1.Underline = TRUE

This example underlines the label of the Value axis of a graph control:

gr_1.Values.LabelDispAttr.Underline = TRUE