vba写如下代码:

Public Sub Test()
  Dim str1 As String
  str1 = "@type='" & "rectangle" & "'"
  Application.ActivePage.Shapes.FindShapes("", 0, False, str1).CreateSelection
End Sub

 

[bool Recursive = true/false    Recursive作用:指定是否遍历所有对象]

Recursive = false 时,运行Test,对象群组下的两个矩形并没有被选取。

coreldraw vba FindShapes方法 Recursive参数含义

 

 

Public Sub Test()
  Dim str1 As String
  str1 = "@type='" & "rectangle" & "'"
  Application.ActivePage.Shapes.FindShapes("", 0, True, str1).CreateSelection
End Sub

 

Recursive = true时,运行Test,对象群组下的两个矩形被选取。

coreldraw vba FindShapes方法 Recursive参数含义

 

相关文章:

  • 2021-12-19
  • 2021-07-12
  • 2022-12-23
  • 2022-12-23
  • 2021-11-07
  • 2022-12-23
  • 2021-11-17
  • 2021-05-30
猜你喜欢
  • 2021-09-17
  • 2021-05-15
  • 2021-09-24
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案