StringShape Class
Draws a text string in a vector graphics environment.
More information available in parent classes: Object2D:Object
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
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.