从“工具箱”的“Office 功能区控件”选项卡上,将以下任意控件拖到菜单设计器上: Button CheckBox Gallery Menu Separator SplitButton ToggleButton 拖动控件,将其移至菜单上的新位置。 将控件放在 Microsoft Office 菜单中的内置控件之前或之后 在菜单设计器中选择一个控件。 在“属性”窗口中,展开“Position”属性。
UseWaitCursor获取或设置一个值,该值指示是否将等待光标用于当前控件以及所有子控件。 (继承自Control。) Visible基础结构。 Width获取或设置Button的宽度(以磅为单位)。 WindowTarget基础结构。此属性与此类无关。 (继承自Control。) 请参见 参考 Button 类 Microsoft.Office.Tools.Word.Controls 命名空间...
public Microsoft.Office.Tools.Ribbon.RibbonOfficeMenu OfficeMenu { get; } Property Value RibbonOfficeMenu A RibbonOfficeMenu that represents the Microsoft Office Menu customization. Remarks The Microsoft Office Menu is the menu that opens when you click the Microsoft Office Button. You can add cont...
(繼承自 Button)。 OnClientSizeChanged 引發ClientSizeChanged 事件。 (繼承自 Control)。 OnContextMenuChanged 引發ContextMenuChanged 事件。 (繼承自 Control)。 OnContextMenuStripChanged 引發ContextMenuStripChanged 事件。 (繼承自 Control)。 OnControlAdded 引發ControlAdded 事件。 (繼承自 Control)。 OnControl...
customButton.FaceId = 17 尽管在诸如 Microsoft Word 这样的 Office 应用程序中已经提供了的数以千计的可能的按钮表面,非常方便使用,但有时业务还是需要自定义按钮表面。此外,创建需要进行本地化的 Office 应用程序可以受益于使用自定义按钮表面,因为应用程序会调整以适应语言和文化差异。该加载项中使用的资源文件,是...
尽管可以使用CommandBarButton对象的FaceId属性将命令栏按钮的图像设置为 Office 提供的内置图像,但您可以使用CommandBarButton对象的Picture属性提供您创建的图像,也可以使用CommandBarButton对象的Mask属性创建自定义透明图像。 尽管在 Web 的共享软件和免费软件站点上有很多可用的图像编辑器,以及 Microsoft Visual C++® ...
Button 控件 CheckBox 控件 CheckedListBox 控件 ColorDialog 组件 ComboBox 控件 ContextMenu 组件 ContextMenuStrip 控件 DataGrid 控件 DataGridView 控件 DateTimePicker 控件 Dialog-Box 控件和组件 DomainUpDown 控件 ErrorProvider 组件 FileDialog 类 FlowLayoutPanel 控件 ...
图1. 使用自定义用户界面编辑器将 Office 2010 部件插入文档中 在右窗格中,插入下面的 XML 标记: XML复制 <customUIxmlns="https://schemas.microsoft.com/office/2009/07/customui"><contextMenus><contextMenuidMso="ContextMenuText"><buttonidMso="FontDialog"visible="false"/><toggleButtonid="MyToggle"labe...
Sub CreateShortcutMenuWithGroups() Dim cmbRightClick As Office.CommandBar ' Create the shortcut menu. Set cmbRightClick = CommandBars.Add("cmdFormFiltering", msoBarPopup, False, True) With cmbRightClick ' Add the Find command. .Controls.Add msoControlButton, 141, , , True ' Start a ...
Note:On a site for which theSite Actionsmenu is customized, point toSite Settings, and then click the settings that you want to view. In theLook and Feelcolumn, clickQuick Launch. Click theEditbuttonfor the link that you want to edit or delete, and then do one of the following: ...