CommandBars.LargeButtons 属性 (Office)

如果显示的工具栏按钮大于正常大小,则为 True 。 读/写。

注意

某些 Microsoft Office 应用程序中对 CommandBars 的使用已由 Microsoft Office Fluent 用户界面的新功能区组件取代。 有关详细信息,请参阅 Office Fluent 功能区概述

语法

表达式LargeButtons

表达 一个代表 CommandBars 对象的变量。

示例

本示例在所有命令栏上的工具栏按钮的显示大小间切换。

Set allBars = CommandBars 
If allBars.LargeButtons Then 
    allBars.LargeButtons = False  
Else 
    allBars.LargeButtons = True  
End If

另请参阅

支持和反馈

有关于 Office VBA 或本文档的疑问或反馈? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。