“SetDecoration 指令”的版本间的差异

来自GeoGebra Manual
跳转至: 导航搜索
(建立内容为“<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} ;SetDecoration( <Object>, <Number> ) :Sets the decoration of the given object (see also…”的新页面)
 
 
(未显示同一用户的2个中间版本)
第1行: 第1行:
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
 
<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}}
;SetDecoration( <Object>, <Number> )
+
;SetDecoration( < 物件>, < 數值> )
:Sets the decoration of the given object (see also the ''Style'' tab in the ''Properties'' window of the object). The object must be an angle, a segment or a "fillable object". The second argument in the command is the numeric code of the decoration / fill-style, as described in the following table.
+
: 設定 <物件> 的裝飾(也可在物件的'''屬性'''視窗''' 樣式''' 分頁進行設定)。<物件> 必須是一個角度、一條線段,或一個''' 可填滿的物件'''。指令中的第二個引數 <數值> 是裝飾或填滿樣式的數值代碼,如下表。
 
 
  
 
:{| class=pretty
 
:{| class=pretty
!Value
+
! 數值
!Segment decoration
+
! 線段裝飾
!Angle decoration
+
! 角度裝飾
!Fill-style
+
! 填滿樣式
 
|-
 
|-
 
|0
 
|0
|Remove decoration
+
| 無裝飾
|Remove decoration
+
| 無裝飾
|Solid fill
+
| 標準
 
|-
 
|-
 
|1
 
|1
|One tick
+
| 一短線
|Two arcs
+
| 二弧線
|Hatched
+
| 斜線
 
|-
 
|-
 
|2
 
|2
|Two ticks
+
| 二短線
|Three arcs
+
| 三弧線
|Cross-hatched
+
| 斜格線
 
|-
 
|-
 
|3
 
|3
|Three ticks
+
| 三短線
|One tick
+
| 一短線
|Chessboard
+
| 棋盤
 
|-
 
|-
 
|4
 
|4
|One arrow
+
| 一箭頭
|Two ticks
+
| 二短線
|Dotted
+
| 小點點
 
|-
 
|-
 
|5
 
|5
|Two arrows
+
| 二箭頭
|Three ticks
+
| 三短線
|Honeycomb
+
| 蜂巢
 
|-
 
|-
 
|6
 
|6
|Three arrows
+
| 三箭頭
|Clockwise arrow
+
| 逆時針箭頭
|Brick
+
| 磚塊
 
|-
 
|-
 
|7
 
|7
|(None)
+
| (無)
|Anticlockwise arrow
+
| 順時針箭頭
|Weave pattern
+
| 編織
 
|}
 
|}
  
  
;SetDecoration(<Segment>, <Number>, <Number>)
+
;SetDecoration(< 線段>, < 數值>, < 數值>)
:Sets the aspect of the line start and end of a segment. In order to view the decoration, it's necessary to hide the two points that define the vertices of the segment. The segment decoration can also be set in the ''Style'' tab of the ''Properties'' window of the segment. The first number used as command parameter defines the style of the line segment start, and the second number sets the style of the line segment end, as described in the following table.
+
: 設定 <線段> 的起點和終點樣式。可先將定義線段的兩端點隱藏,才能清楚地看到裝飾。線段裝飾也可以在'''屬性''' 視窗''' 樣式''' 分頁進行設定。第一個 <數值> 作為指令參數定義此 <線段> 的起點樣式,而第二個 <數值> 則是設定終點樣式,如下表。
  
 
:{| class=pretty
 
:{| class=pretty
!Value
+
! 數值
!Decoration
+
! 裝飾
 
|-
 
|-
 
|0
 
|0
|No decoration
+
| 無裝飾
 
|-
 
|-
 
|1
 
|1
|vertical bar
+
| 垂直短線
 
|-
 
|-
 
|2
 
|2
|empty square
+
| 空心方格
 
|-
 
|-
 
|3
 
|3
|filled square
+
| 實心方格
 
|-
 
|-
 
|4
 
|4
|arrow
+
| 箭頭
 
|-
 
|-
 
|5
 
|5
|filled arrow
+
| 實心箭頭
 
|-
 
|-
 
|6
 
|6
|empty dot
+
| 空心圓點
 
|-
 
|-
 
|7
 
|7
|filled dot
+
| 實心圓點
 
|}
 
|}

2024年1月4日 (四) 04:23的最新版本

Accessories dictionary.png
本頁為官方文件,一般使用者無法修改,若有任何誤謬,請與官方聯絡。如欲編輯,請至本頁的開放版


SetDecoration( <物件>, <數值> )
設定 <物件> 的裝飾(也可在物件的屬性視窗樣式分頁進行設定)。<物件> 必須是一個角度、一條線段,或一個可填滿的物件。指令中的第二個引數 <數值> 是裝飾或填滿樣式的數值代碼,如下表。
數值 線段裝飾 角度裝飾 填滿樣式
0 無裝飾 無裝飾 標準
1 一短線 二弧線 斜線
2 二短線 三弧線 斜格線
3 三短線 一短線 棋盤
4 一箭頭 二短線 小點點
5 二箭頭 三短線 蜂巢
6 三箭頭 逆時針箭頭 磚塊
7 (無) 順時針箭頭 編織


SetDecoration(<線段>, <數值>, <數值>)
設定 <線段> 的起點和終點樣式。可先將定義線段的兩端點隱藏,才能清楚地看到裝飾。線段裝飾也可以在屬性視窗樣式分頁進行設定。第一個 <數值> 作為指令參數定義此 <線段> 的起點樣式,而第二個 <數值> 則是設定終點樣式,如下表。
數值 裝飾
0 無裝飾
1 垂直短線
2 空心方格
3 實心方格
4 箭頭
5 實心箭頭
6 空心圓點
7 實心圓點
© 2024 International GeoGebra Institute