UnmergeCells 方法 (ActiveX)
拆分表中合并的单元格。 支持的平台:仅限 Windows 签名VBA: object.UnmergeCells minRow, maxRow, minCol, maxCol
返回值 (RetVal)无返回值。 言论没有其他评论。 例子VBA: Sub Example_MergeCells() Dim MyModelSpace As AcadModelSpace Set MyModelSpace = ThisDrawing.ModelSpace Dim pt(2) As Double Dim MyTable As AcadTable Set MyTable = MyModelSpace.AddTable(pt, 5, 5, 10, 30) Call MyTable.MergeCells(2, 3, 2, 3) MsgBox "The cells have been merged appropriately." ZoomExtents End Sub 可视化 LISP: (vl-load-com) (defun c:Example_MergeCells() (setq acadObj (vlax-get-acad-object)) (setq doc (vla-get-ActiveDocument acadObj)) (setq pt (vlax-3d-point 0 0 0)) (setq modelSpace (vla-get-ModelSpace doc)) (setq MyTable (vla-AddTable modelSpace pt 5 5 10 30)) (vla-MergeCells MyTable 2 3 2 3) (alert "The cells have been merged appropriately.") (vla-ZoomExtents acadObj) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-19 07:34
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.