IRibbon.FindById

Syntax

FindById(Id: Integer): IBaseRibbonElement;

Parameters

Id. Control identifier.

Description

The FindById method searches for the control by the numeric identifier.

Comments

When the ribbon is created using the editor, or on dynamic controls creation, the identifiers are generated automatically. Identifiers range starts with 35000. The FindById method is relevant if the ribbon structure is loaded from an XML file, and identifier values are predefined for specific controls.

The FindById method returns control parameters if the search was successful, and Null if the control cannot be found.

See also:

IRibbon