アプリケーションまたはメニュー項目の、ユーザに表示される文字列を取得します。
サポートされているプラットフォーム: Windows のみ
読み込み専用: いいえ(PopupMenuItem オブジェクトを除く)
タイプ: 文字列
AutoCAD アプリケーション ウィンドウに表示されるタイトル、またはポップアップ メニューのメニュー項目のタイトル。
メニュー項目の場合、このプロパティは読み込み専用であり、すべての DIESEL 文字列式を削除することによって Label プロパティから派生しています。
VBA:
Sub Example_Caption()
' This example returns the caption for the current
' AutoCAD session.
' Get the Caption property
Dim strCaption As String
strCaption = ThisDrawing.Application.Caption
MsgBox "The caption for this session is " & ThisDrawing.Application.Caption, , "Caption Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_Caption()
;; This example returns the caption for the current
;; AutoCAD session.
(setq acadObj (vlax-get-acad-object))
;; Get the Caption property
(setq strCaption (vla-get-Caption acadObj))
(alert (strcat "The caption for this session is " strCaption))
)