_CommandBarButton.Copy(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies a command bar control to an existing command bar.
public Microsoft.Office.Core.CommandBarControl Copy (object Bar, object Before);
abstract member Copy : obj * obj -> Microsoft.Office.Core.CommandBarControl
Public Function Copy (Optional Bar As Object, Optional Before As Object) As CommandBarControl
Parameters
- Bar
- Object
Optional Object. A number that indicates the position for the new control on the command bar. The new control will be inserted before the control at this position. If this argument is omitted, the control is copied to the end of the command bar.
- Before
- Object
Optional Object. A CommandBar object that represents the destination command bar. If this argument is omitted, the control is copied to the command bar where the control already exists.
Returns
Implements
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應