Creates a string using the current font and color.
Syntax
HTML <PARAM NAME="Line0001"
VALUE="Text( 'str', x, y, rotation )">Scripting SGObj.Text( 'str' , x, y, rotation ) File Text( 'str' , x, y, rotation )
Parameters
- 'str'
- String to be drawn.
- x, y
- Position for the baseline of the first character.
- rotation
- Degree of rotation from the 0 degrees position.
Remarks
The text primitive draws from the origin point upward, as opposed to the other primitives which draw from the origin point downward.
Example
The following code creates the word "Hello" angled 45 degrees from 0.
<OBJECT ID="String" CLASSID="CLSID:369303C2-D7AC-11d0-89D5-00A0C90833E6" STYLE="WIDTH:250;HEIGHT:200"> <PARAM NAME="Line0001" VALUE="SetFillColor(0,0,255)"> <PARAM NAME="Line0002" VALUE="SetFont('Verdana', 75, 400, 0, 0, 0)"> <PARAM NAME="Line0003" VALUE="Text('Hello', 0, 0, 45)"> </OBJECT>
Top of Page
© 2000 Microsoft and/or its suppliers. All rights reserved. Terms of Use.