Difference between revisions of "Text Command"
From GeoGebra Manual
m (1 revision: tt => code) |
m |
||
Line 4: | Line 4: | ||
: {{Note| By default, values are substituted for variables.}} | : {{Note| By default, values are substituted for variables.}} | ||
: {{Example|1=If ''a = 2'' and ''c = a<sup>2</sup>'', then <code>Text[c]</code> returns the text "4".}} | : {{Example|1=If ''a = 2'' and ''c = a<sup>2</sup>'', then <code>Text[c]</code> 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|1=<div>If ''a = 2'' and ''c = a<sup>2</sup>'', then | |
− | + | * <code>Text[c, true]</code> returns the text "4" and | |
− | + | * <code>Text[c, false]</code> returns the text "''a<sup>2</sup>''"</div>}} | |
+ | |||
; 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| <code>Text["hello", (2, 3)]</code> draws the text at the position ''(2, 3)''.}} | + | : {{Example|1=<code>Text["hello", (2, 3)]</code> 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}} | ; Text[Object, Point, Boolean,Boolean]: {{description}} | ||
{{Note|See also [[Insert Text Tool]]}} | {{Note|See also [[Insert Text Tool]]}} |
Revision as of 16:04, 18 April 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" andText[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]
Description of command / feature needed. Please enter it instead of this template into Manual:Text Command. so that it's included also to the public namespace. For more details see Project:HowTo
Note: See also Insert Text Tool