Are you an LLM? You can read better optimized documentation at /zh\official\Reference\tbIDE\Toolbars.md for this page in Markdown format
Toolbars 类
IDE 工具栏集合。通过 Host.Toolbars 访问。当前只有一个工具栏——Host.Toolbars(0)——但集合接口允许未来 IDE 版本添加更多。
vb
With Host.Toolbars(0)
.AddSplitter
Set Button1 = .AddButton("MyAddIn.Button1", "Refresh")
End With属性
Count
工具栏数量。Long,只读。当前始终为 1。
Item
工具栏的索引访问。DefaultMember——因此 Toolbars(0) 等同于 Toolbars.Item(0)。
语法:toolbars( Index ) As Toolbar
- Index
- 一个基于 0 的 Variant 索引。当前
0是唯一有效值。