Skip to content

FindControl Method

Description

Finds and returns the specified control within the Ribbon Bar's collection of controls.

Syntax

Public Function FindControl( _
    Optional ByVal Type As Variant, _
    Optional ByVal Id As Variant, _
    Optional ByVal Visible As Variant, _
    Optional ByVal Recursive As Variant _
) As [CommandBarControl](XtremeCommandBars~CommandBarControl.md)

Parameters

  • Type: Type of control to find (button, popup button, split button, etc.). Can be any of the XTPControlType flags.
  • Id: Id of the control to find.
  • Visible:
  • True to look for a control that is visible, or
  • False to look for a control that is hidden.
  • Leave blank to search both.
  • Recursive:
  • True to search recursively through all popup controls.
  • If False, only top-level controls will be searched; no controls contained in popups will be searched through.

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.