Object2D → Object

StringShape Class

Draws a text string in a vector graphics environment.

Properties
Bold
Italic
Text
TextFont
TextSize
Underline

# Notes

The X,Y properties specify the center of the string's baseline. Strings that contain line breaks are not supported. StringShapes can be rotated, but doing so is memory intensive, especially for large strings.

# Example

This example draws a line of text when the user presses the mouse button. Place the following code in the MouseDown event of a Window.

Dim s as New StringShape
s.Text="Hello World"
s.TextFont="Helvetica"
s.Bold=True
Graphics.DrawObject s,x,y

# See Also

ArcShape, CurveShape, FigureShape, FolderItem, Group2D, Graphics, Object2D, OvalShape, Picture, PixmapShape, RectShape, RoundRectShape classes.