RibbonToggleButton.Description 属性

定义

获取或设置菜单中此 RibbonToggleButton 控件上显示的文本。Gets or sets the text that appears on this RibbonToggleButton control in a menu.

public string Description { get; set; }

属性值

String

一个 String,表示控件上的文本。A String that represents the text on the control.

注解

Description如果 RibbonToggleButton 嵌套在另一个菜单中,并且 ItemSize 父菜单的属性设置为,则会显示 Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLargeThe Description appears when RibbonToggleButton is nested in another menu, and the ItemSize property of the parent menu is set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeLarge. 如果将 ItemSize 设置为 Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular ,则不会显示说明。If the ItemSize is set to Microsoft.Office.Core.RibbonControlSize.RibbonControlSizeRegular, the description does not appear.

可以在运行时更改此属性。This property can be changed at run time.

适用于