Difference between revisions of "Text Command"

From GeoGebra Manual
Jump to: navigation, search
(added v.4 - some formatting - needs description)
Line 1: Line 1:
<noinclude>{{Manual Page}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
+
<noinclude>{{Manual Page|version=4.0}}[[Category:Manual (official)|{{PAGENAME}}]]</noinclude>
 
{{command|text}}
 
{{command|text}}
 
; Text[Object]: Returns the formula for the object as a [[texts|text object]].
 
; Text[Object]: Returns the formula for the object as a [[texts|text object]].
: Note: By default, values are substituted for variables.
+
: {{Note| By default, values are substituted for variables.}}
: Example: If ''a = 2'' and ''c = a<sup>2</sup>'', then <tt>Text[c]</tt> returns the text "4".
+
: {{Example|1=If ''a = 2'' and ''c = a<sup>2</sup>'', then <tt>Text[c]</tt> returns the text "4".}}
 
; Text[Object, Boolean]: Returns the formula for the object as a text object. The Boolean variable determines if values are substituted for variables (''true'') or if variable names are shown in the text (''false'').
 
; Text[Object, Boolean]: Returns the formula for the object as a text object. The Boolean variable determines if values are substituted for variables (''true'') or if variable names are shown in the text (''false'').
: Example: If ''a = 2'' and ''c =  a<sup>2</sup>'', then  
+
: {{Example|1= If ''a = 2'' and ''c =  a<sup>2</sup>'', then  
 
: <tt>Text[c, true]</tt> returns the text "4" and  
 
: <tt>Text[c, true]</tt> returns the text "4" and  
: <tt>Text[c, false]</tt> returns the text "''a<sup>2</sup>''".
+
: <tt>Text[c, false]</tt> returns the text "''a<sup>2</sup>''".}}
 
; Text[Object, Point]: Returns the formula for the object as a text object at the position of the given point.
 
; Text[Object, Point]: Returns the formula for the object as a text object at the position of the given point.
: Example: <tt>Text["hello", (2, 3)]</tt> draws the text at the position ''(2, 3)''.
+
: {{Example| <tt>Text["hello", (2, 3)]</tt> draws the text at the position ''(2, 3)''.}}
 
; Text[Object, Point, Boolean]: Returns the formula for the object as a text object at the position of the given point. The Boolean variable determines if values are substituted for variables (''true'') or if variable names are shown in the text (''false'').
 
; Text[Object, Point, Boolean]: Returns the formula for the object as a text object at the position of the given point. The Boolean variable determines if values are substituted for variables (''true'') or if variable names are shown in the text (''false'').
 +
; Text[Object, Point, Boolean,Boolean]: {{description}}
  
 
{{Note|See also [[Insert Text Tool]]}}
 
{{Note|See also [[Insert Text Tool]]}}

Revision as of 13:03, 14 February 2011


Text[Object]
Returns the formula for the object as a text object.
Note: By default, values are substituted for variables.
Example: If a = 2 and c = a2, then Text[c] returns the text "4".
Text[Object, Boolean]
Returns the formula for the object as a text object. The Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false).
Example: If a = 2 and c = a2, then
Text[c, true] returns the text "4" and
Text[c, false] returns the text "a2".
Text[Object, Point]
Returns the formula for the object as a text object at the position of the given point.
Example: Text["hello", (2, 3)] draws the text at the position (2, 3).
Text[Object, Point, Boolean]
Returns the formula for the object as a text object at the position of the given point. The Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false).
Text[Object, Point, Boolean,Boolean]


Note: See also Insert Text Tool
© 2024 International GeoGebra Institute