CommandBar.FindControl(Object, Object, Object, 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.
Returns a CommandBarControl object that fits the specified criteria.
public Microsoft.Office.Core.CommandBarControl FindControl (object Type, object Id, object Tag, object Visible, object Recursive);
abstract member FindControl : obj * obj * obj * obj * obj -> Microsoft.Office.Core.CommandBarControl
Public Function FindControl (Optional Type As Object, Optional Id As Object, Optional Tag As Object, Optional Visible As Object, Optional Recursive As Object) As CommandBarControl
Parameters
- Type
- Object
Optional MsoControlType. The type of control.
- Id
- Object
Optional Object. The identifier of the control.
- Tag
- Object
Optional Object. The tag value of the control.
- Visible
- Object
Optional Object. True to include only visible command bar controls in the search. The default value is False. Visible command bars include all visible toolbars and any menus that are open at the time the FindControl method is executed.
- Recursive
- Object
Optional Boolean. True to include the command bar and all of its pop-up subtoolbars in the search. The default value is False.
Returns
Remarks
If the CommandBars collection contains two or more controls that fit the search criteria, FindControl returns the first control that's found. If no control that fits the criteria is found, FindControl returns Nothing.
Applies to
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기