1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<TITLE>TEXTPROPERTIES Text Object Properties
</TITLE>
</HEAD>
<BODY>
<H2>TEXTPROPERTIES Text Object Properties
</H2>
<P>
Section: <A HREF=sec_handle.html> Handle-Based Graphics </A>
<H3>Usage</H3>
Below is a summary of the properties for a text object.
<UL>
<LI> <code>boundingbox</code> - <code>four vector</code> - The size of the bounding
box containing the text (in pixels). May contain negative values
if the text is slanted.
</LI>
<LI> <code>children</code> - Not used.
</LI>
<LI> <code>string</code> - <code>string</code> - The text contained in the label.
</LI>
<LI> <code>extent</code> - Not used.
</LI>
<LI> <code>horizontalalignment</code> - <code>{'left','center','right'}</code> - Controls the
alignment of the text relative to the specified position point.
</LI>
<LI> <code>position</code> - <code>three vector</code> - The position of the label in axis
coordinates.
</LI>
<LI> <code>rotation</code> - <code>scalar</code> - The rotation angle (in degrees) of the label.
</LI>
<LI> <code>units</code> - Not used.
</LI>
<LI> <code>verticalalignment</code> - <code>{'top','bottom','middle'}</code> - Controls the
alignment fo the text relative to the specified position point in the
vertical position.
</LI>
<LI> <code>backgroundcolor</code> - <code>colorspec</code> - The color used to fill in the background
rectangle for the label. Normally this is <code>none</code>.
</LI>
<LI> <code>edgecolor</code> - <code>colorspec</code> - The color used to draw the bounding rectangle
for the label. Normally this is <code>none</code>.
</LI>
<LI> <code>linewidth</code> - <code>scalar</code> - The width of the line used to draw the border.
</LI>
<LI> <code>linestyle</code> - <code>{'-','--',':','-.','none'}</code> - The style of the line used
to draw the border.
</LI>
<LI> <code>margin</code> - <code>scalar</code> - The amount of spacing to place around the text as
padding when drawing the rectangle.
</LI>
<LI> <code>fontangle</code> - <code>{'normal','italic','oblique'}</code> - The angle of the fonts used
for the labels.
</LI>
<LI> <code>fontsize</code> - <code>scalar</code> - The size of fonts used for the text.
</LI>
<LI> <code>fontunits</code> - Not used.
</LI>
<LI> <code>fontweight</code> - <code>{'normal','bold','light','demi'}</code> - The weight of the font used
for the label
</LI>
<LI> <code>visible</code> - <code>{'on','off'}</code> - Controls visibility of the the line.
</LI>
<LI> <code>color</code> - <code>colorspec</code> - The color of the text of the label.
</LI>
<LI> <code>children</code> - Not used.
</LI>
<LI> <code>parent</code> - The handle of the axis that owns this label.
</LI>
<LI> <code>tag</code> - <code>string</code> - A string that can be used to tag the object.
</LI>
<LI> <code>type</code> - <code>string</code> - Returns the string <code>'text'</code>.
</LI>
<LI> <code>userdata</code> - <code>array</code> - Available to store any variable you
want in the handle object.
</LI>
</UL>
</BODY>
</HTML>
|