Caption 属性 (ActiveX)
获取用户看到的为应用程序或菜单项显示的文本。 支持的平台:仅限 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 可视化 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)) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 11:38
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.