Solid Edge Framework Type Library
FindControl Method
Member of the seControlType constant set that specifies the type of control to search for.
Specifies the identifier of the control to search for.
Specifies the tag of the control to search for.
Specifies whether or not to include controls in the search. If True, only visible command bars are included. The default value is False.
Description
Finds the referenced command bar control within the current environment.
Syntax
Visual Basic
Public Function FindControl( _
   Optional ByVal Type As Variant, _
   Optional ByVal Id As Variant, _
   Optional ByVal Tag As Variant, _
   Optional ByVal Visible As Variant _
) As CommandBarControl
Parameters
Type
Member of the seControlType constant set that specifies the type of control to search for.
Id
Specifies the identifier of the control to search for.
Tag
Specifies the tag of the control to search for.
Visible
Specifies whether or not to include controls in the search. If True, only visible command bars are included. The default value is False.
Remarks
If the CommandBars collection contains two or more controls that fit the search criteria, FindControl returns the first control found. If no control that fits the criteria is found, FindControl returns Nothing.
See Also

ISECommandBars Collection  | ISECommandBars Members

Send comments on this topic.