×

Sign up and get MultiCharts free

Use its powerful simulation mode with data included out of the box. Just fill out the form and start honing your trading skills with a few clicks.

Changes - MultiCharts
Open main menu

Changes

Text GetAttribute

125 bytes added, 13:12, 13 February 2012
m
Reverted edits by 176.8.90.7 (talk) to last revision by JoshM
Returns a logical value indicating the setting for an attribute of a text object with the specified ID number; returns a value of [[True]] if the attribute is set to on, and a value of [[False]] if the attribute is set to off or if the specified object ID number is invalid.
The settings Text_GetAttribute returns a value of '''True''' if the following attributes can be returned: border, bold, italic, strike-outattribute is set to on, and underlinea value of '''False''' if the attribute is set to off or if the specified object ID number is invalid. ==== Usage ====<syntaxhighlight>Text_GetAttribute(ObjectID,Attribute)</syntaxhighlight>
==== Parameters ==== [[ObjectID]] The settings of the following attributes can be returned: border, bold, italic, strike- a numerical expression specifying the object ID number out, and underline.
[[== Usage ==<syntaxhighlight>Text_GetAttribute(ObjectID, Attribute]] - a numerical expression specifying the attribute:)</syntaxhighlight>
0 == Parameters == :'''ObjectID''' - bordera numerical expression specifying the object ID number.
1 :'''Attribute''' - bolda numerical expression specifying the attribute:
2 ::'''0''' - italicborder
3 ::'''1''' - strike-outbold
4 ::'''2''' - underlineitalic
==::'''3''' - strike-out ::'''4''' - underline == Notes ==== * An object-specific ID number is returned by [[Text_New]] when the text object is created. * Use [[Text_SetAttribute]] to set the attribute for a text object. ==== Example ====
Assign a true/false value, indicating the setting of "bold" attribute for the text object with an ID number of 3, to Bold variable:
<syntaxhighlight>Variable:Bold(False);  Bold=Text_GetAttribute(3,1);</syntaxhighlight>
[[Category:Text Drawing]]