+1 888 340 6572

Text GetFontName: Difference between revisions

From MultiCharts
(Created page with "Returns a string expression corresponding to the name of the font assigned to a text object with the specified ID number. ==== Usage ==== <syntaxhighlight>Text_GetFontName(...")
 
m (Reverted edits by 176.8.90.7 (talk) to last revision by JoshM)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Returns a string expression corresponding to the name of the font assigned to a text object with the specified ID number.  
Returns a string expression corresponding to the name of the font assigned to a text object with the specified ID number.  
   
   
==== Usage ====
== Usage ==
<syntaxhighlight>Text_GetFontName(ObjectID)</syntaxhighlight>  
<syntaxhighlight>Text_GetFontName(ObjectID)</syntaxhighlight>  


Where: [[ObjectID]] - a numerical expression specifying the object ID number  
Where:
 
:'''ObjectID''' - a numerical expression specifying the object ID number.
   
   
==== Notes ====  
== Notes ==
An object-specific ID number is returned by [[Text_New]]when the text object is created.  
* An object-specific ID number is returned by [[Text_New]] when the text object is created.
* Use [[Text_SetFontName]] to set the font for a text object.
==== Example ====
 
<syntaxhighlight>Text_GetFontName(3) will return a string expression corresponding to the name of the font assigned to a text object with the ID number of 3</syntaxhighlight>
== Example ==
<syntaxhighlight>Text_GetFontName(3);</syntaxhighlight>
Will return a string expression corresponding to the name of the font assigned to a text object with the ID number of 3.
   
   
[[Category:Text Drawing]]
[[Category:Text Drawing]]

Latest revision as of 13:12, 13 February 2012

Returns a string expression corresponding to the name of the font assigned to a text object with the specified ID number.

Usage

Text_GetFontName(ObjectID)

Where:

ObjectID - a numerical expression specifying the object ID number.

Notes

  • An object-specific ID number is returned by Text_New when the text object is created.
  • Use Text_SetFontName to set the font for a text object.

Example

Text_GetFontName(3);

Will return a string expression corresponding to the name of the font assigned to a text object with the ID number of 3.