アプリケーション ウィンドウの左エッジを指定します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ
タイプ: 整数型
アプリケーション ウィンドウの左エッジ
アプリケーション ウィンドウの左エッジは、画面の左エッジとメイン アプリケーション ウィンドウの左エッジとの距離で表されます。
この距離は、アプリケーション ウィンドウの左上コーナーの X 座標です。 左上コーナーの原点は、(0, 0)であることに注意してください。
VBA:
Sub Example_WindowLeft() ' This example finds the WindowLeft (X coordinate) of the top of the ' AutoCAD window. It then changes that position to be 100 more ' than it currently is. Finally, it resets the window to the ' original value. ' Find the current value of the WindowLeft property Dim currWindowLeft As Integer currWindowLeft = ThisDrawing.Application.WindowLeft MsgBox "The current value of WindowLeft is " & ThisDrawing.Application.WindowLeft, , "WindowLeft Example" ' Change the value of WindowLeft ThisDrawing.Application.WindowLeft = currWindowLeft + 100 MsgBox "The new value of WindowLeft is " & ThisDrawing.Application.WindowLeft, , "WindowLeft Example" ' Reset the value of WindowLeft ThisDrawing.Application.WindowLeft = currWindowLeft MsgBox "The value of WindowLeft has been reset to " & ThisDrawing.Application.WindowLeft, , "WindowLeft Example" End Sub
Visual LISP:
(vl-load-com) (defun c:Example_WindowLeft() ;; This example finds the WindowLeft (X coordinate) of the top of the ;; AutoCAD window. It then changes that position to be 100 more ;; than it currently is. Finally, it resets the window to the ;; original value. (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) ;; Find the current value of the WindowLeft property (setq currWindowLeft (vla-get-WindowLeft acadObj)) (alert (strcat "The current value of WindowLeft is " (itoa currWindowLeft))) ;; Change the value of WindowLeft (vla-put-WindowLeft acadObj (+ currWindowLeft 100)) (alert (strcat "The new value of WindowLeft is " (itoa (vla-get-WindowLeft acadObj)))) ;; Reset the value of WindowLeft (vla-put-WindowLeft acadObj currWindowLeft) (alert (strcat "The value of WindowLeft has been reset to " (itoa (vla-get-WindowLeft acadObj)))) )