マルチ引出線の文字をその表示枠を示すテキスト ボックスに切り替えます。すなわち、文字そのものを表示しないオブジェクトで表示します。
サポートされているプラットフォーム: Windows のみ
VBA:
object.TextFrameDisplay
タイプ: DatabasePreferences、GeoPositionMarker、MLeader
このプロパティが適用されるオブジェクト。
読み込み専用: いいえ
タイプ: ブール型
読み込み専用: いいえ
タイプ: ブール型
このプロパティの初期値は False です。
DatabasePreferences: このオプションを有効または無効にした後、Regen メソッドを使って表示の更新をしてください。
VBA:
Sub Example_TextFrameDisplay()
' This example returns the current setting of
' TextFrameDisplay. It then changes the value, and finally
' it resets the value back to the original setting.
Dim currTextFrameDisplay As Boolean
' Retrieve the current TextFrameDisplay value
currTextFrameDisplay = ThisDrawing.Preferences.TextFrameDisplay
MsgBox "The current value for TextFrameDisplay is " & Preferences.TextFrameDisplay, vbInformation, "TextFrameDisplay Example"
' Change the value for TextFrameDisplay
ThisDrawing.Preferences.TextFrameDisplay = Not (currTextFrameDisplay)
MsgBox "The new value for TextFrameDisplay is " & Preferences.TextFrameDisplay, vbInformation, "TextFrameDisplay Example"
' Reset TextFrameDisplay to its original value
ThisDrawing.Preferences.TextFrameDisplay = currTextFrameDisplay
MsgBox "The TextFrameDisplay value is reset to " & Preferences.TextFrameDisplay, vbInformation, "TextFrameDisplay Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_TextFrameDisplay()
;; This example returns the current setting of
;; TextFrameDisplay. It then changes the value, and finally
;; it resets the value back to the original setting.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq preferences (vla-get-Preferences doc))
;; Retrieve the current TextFrameDisplay value
(setq currTextFrameDisplay (vla-get-TextFrameDisplay preferences))
(alert (strcat "The current value for TextFrameDisplay is " (if (= currTextFrameDisplay :vlax-true) "True" "False")))
;; Change the value for TextFrameDisplay
(vla-put-TextFrameDisplay preferences (if (= currTextFrameDisplay :vlax-true) :vlax-false :vlax-true))
(alert (strcat "The new value for TextFrameDisplay is " (if (= (vla-get-TextFrameDisplay preferences) :vlax-true) "True" "False")))
;; Reset TextFrameDisplay to its original value
(vla-put-TextFrameDisplay preferences currTextFrameDisplay)
(alert (strcat "The TextFrameDisplay value is reset to " (if (= (vla-get-TextFrameDisplay preferences) :vlax-true) "True" "False")))
)