會以指定的度數為遞增值,變更指定的圖案繞 Z 軸的旋轉角度。
語法
expression。
IncrementRotation( _Increment_ )
需要 expression。 代表 Shape 物件的變數。
參數
| 名稱 | 必要/選用 | 資料類型 | 描述 |
|---|---|---|---|
| Increment | 必要 | Single | 會指定圖案沿水平方向旋轉的角度 (以度為單位)。 正值會讓圖案依順時針方向旋轉,負值則會讓圖案依逆時針方向旋轉。 |
註解
使用 Rotation 屬性來設定圖案的絕對旋轉角度。 若要旋轉立體圖案繞 x 軸或 y 軸,請使用 ThreeDFormat 物件的 IncrementRotationX 或 IncrementRotationY 方法。
範例
這個範例是在 myDocument 上複製形狀一,設定填補,將它向右移動 70 點,向上移動 50 點,並順時針旋轉 30 度。
Set myDocument = ActiveDocument
With myDocument.Shapes(1).Duplicate
.Fill.PresetTextured msoTextureGranite
.IncrementLeft 70
.IncrementTop -50
.IncrementRotation 30
End With
另請參閱
支援和意見反應
有關於 Office VBA 或這份文件的問題或意見反應嗎? 如需取得支援服務並提供意見反應的相關指導,請參閱 Office VBA 支援與意見反應。