TextColor  ThreeState

Chapter 3: Property Descriptions and Usage

TextSize

Applies to

Controls that can display text

Description

The TextSize property specifies the point size of the text in the control.

Usage


In a painter

StepsTo set the size of all the text in a control:

  1. Display the Font tab page of the control’s Properties view and select the desired point size from the Size drop-down list, or select the control and then set the point size using the Font Size list box on the StyleBar.

StepsTo set the size of 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 desired point size from the TextSize list.


In scripts

The TextSize property takes an integer value that indicates the point size. The following example sets the point size of a static text control:

st_1.TextSize = 12

This example sets the point size of the label of the Value axis of a graph control.

gr_1.Values.LabelDispAttr.TextSize = 12





Copyright © 2005. Sybase Inc. All rights reserved. ThreeState

View this book as PDF