Text 指令

来自GeoGebra Manual
Pegasusroe讨论 | 贡献2012年10月2日 (二) 11:26的版本
跳转至: 导航搜索
Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


UnderConstruction.png
目前本頁中文說明尚未翻譯完成,請先連至英文說明。如果您有權限,請幫忙翻譯本頁的官方手冊
Text[Object]
Returns the formula for the object as a 文字.
備註: By default, values are substituted for variables.
範例: 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).
範例:
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.
範例: Text["hello", (2, 3)] returns the text hello 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 substitute,Boolean LaTeX]
Returns the formula for the object as a text object at the position of the given point. First Boolean variable determines if values are substituted for variables (true) or if variable names are shown in the text (false). If the second Boolean variable is true, the result is rendered using LaTeX.
範例: 假設 n = 3,則 Text["\frac{1}{" + (2^n) + "}", A, true, true] 會得到「\frac{1}{8}」的文字方塊,它的左上角會對齊 A 點。
© 2024 International GeoGebra Institute