ShowToolbarButton 方法(TrendPro 对象)
隐藏或显示 TrendPro 对象上的工具栏按钮。从工具栏中隐藏的按钮也会从快捷菜单中隐藏。
语法
TrendPro1
.ShowToolbarButton
(toolbarButtonID
, state
)其中
TrendPro1
- 是 TrendPro 对象的名称,或是一个对 TrendPro 对象求值的表达式。toolbarButtonID
- 是工具栏上按钮的 ButtonID
常量的参数。state -
是布尔类型的参数,可以设置为下列值之一:- True:运行时在工具栏上显示按钮。
- False:运行时不在工具栏上显示按钮。
示例
Private Sub ShowToolbarButton() 'Hides the Print button on the toolbar at runtime. TrendPro1.ShowToolbarButton PrintButton, False End Sub
提供反馈