语法
表达式.ControlFormat
表达式 一个代表 Shape 对象的变量。
示例
本示例删除列表框中选定的数据项。如果 Shapes(2) 代表的不是列表框,则本示例将无效。
Shapes(2)
let lbcf = Worksheets.Item(1).Shapes.Item(2).ControlFormat lbcf.RemoveItem(lbcf.ListIndex)