セルまたはセル スタイルの回転角度の値を取得します。
サポートされているプラットフォーム: Windows のみ
VBA:
RetVal = object.GetRotation(nRow, nCol, nContent)
タイプ: Table
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: 長整数型
設定するセルの行番号。
アクセス: 入力のみ
タイプ: 長整数型
設定するセルの列番号。
アクセス: 入力のみ
タイプ: 長整数型
セルの内容の値。
VBA:
RetVal = object.GetRotation(StringCellStyle)
タイプ: TableStyle
このメソッドが適用されるオブジェクト。
アクセス: 入力のみ
タイプ: 文字列
セル スタイル名。
タイプ: 倍精度浮動小数点数型
セルまたはセル スタイルの回転角度の値。
追加の注意はありません。
VBA:
Sub Example_CellClass()
' This example creates a TableStyle object and sets values for
' the style classes and formatting.
Dim dictionaries As AcadDictionaries
Set dictionaries = ThisDrawing.Database.dictionaries
Dim dictObj As AcadDictionary
Set dictObj = dictionaries.Item("acad_tablestyle")
' Create the custom TableStyle object in the dictionary
Dim keyName As String
Dim className As String
Dim customObj As IAcadTableStyle
keyName = "NewStyle"
className = "AcDbTableStyle"
Set customObj = dictObj.AddObject(keyName, className)
customObj.Name = "NewStyle"
customObj.Description = "New Style for My Tables"
customObj.CreateCellStyle ("NewTestStyle")
Dim cellTestFormat As String
customObj.SetCellClass "NewTestStyle", 4
customObj.SetRotation "NewTestStyle", 8.4
MsgBox "The cell class is " & customObj.GetCellClass("NewTestStyle") & _
" the cell rotation is " & customObj.GetRotation("NewTestStyle")
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_CellClass()
;; This example creates a TableStyle object and sets values for
;; the style classes and formatting.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq dictionaries (vla-get-Dictionaries doc))
(setq dictObj (vla-Item dictionaries "acad_tablestyle"))
;; Create the custom TableStyle object in the dictionary
(setq keyName "NewStyle"
className "AcDbTableStyle")
(setq customObj (vla-AddObject dictObj keyName className))
(vla-put-Name customObj "NewStyle")
(vla-put-Description customObj "New Style for My Tables")
(vla-CreateCellStyle customObj "NewTestStyle")
(vla-SetCellClass customObj "NewTestStyle" 4)
(vla-SetRotation customObj "NewTestStyle" 8.4)
(alert (strcat "The cell class is " (itoa (vla-GetCellClass customObj "NewTestStyle"))
" and the cell rotation is " (rtos (vla-GetRotation customObj "NewTestStyle") 2) "."
)
)
)