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

来自GeoGebra Manual
跳转至: 导航搜索
(建立内容为“<noinclude>{{Manual Page|version=5.0}}</noinclude>{{command|scripting}} ;SetDecoration( <Object>, <Number> ) :Sets the decoration of the given object (see also…”的新页面)
 
第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
第52行: 第51行:
  
  
;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.
 
: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.
  

2024年1月4日 (四) 03:20的版本

Accessories dictionary.png
本页为官方文件,一般使用者无法修改,若有任何误谬,请与官方联络。如欲编辑,请至本页的开放版


SetDecoration( <物件>, <数值> )
设定 <物件> 的装饰(也可在物件的属性视窗样式分页进行设定)。<物件> 必须是一个角度、一条线段,或一个可填满的物件。指令中的第二个引数 <数值> 是装饰或填满样式的数值代码,如下表。
数值 线段装饰 角度装饰 填满样式
0 Remove decoration Remove decoration Solid fill
1 One tick Two arcs Hatched
2 Two ticks Three arcs Cross-hatched
3 Three ticks One tick Chessboard
4 One arrow Two ticks Dotted
5 Two arrows Three ticks Honeycomb
6 Three arrows Clockwise arrow Brick
7 (None) Anticlockwise arrow Weave pattern


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.
Value Decoration
0 No decoration
1 vertical bar
2 empty square
3 filled square
4 arrow
5 filled arrow
6 empty dot
7 filled dot
© 2024 International GeoGebra Institute