IRibbonPanel.AddReferenceElement

Syntax

AddReferenceElement(Value: IBaseRibbonElement);

AddReferenceElement(Value: Prognoz.Platform.Interop.Forms.IBaseRibbonElement);

Parameters

Value. The control, a reference to which is added.

Description

The AddReferenceElement method adds a control, which is a reference to a control on the other panel, to the ribbon panel.

Comments

The control depends on the state of the control, from which a reference is made, for example: when the main button is deleted, all reference buttons are deleted from all panels.

Example

The method use is given in the example for IRibbon.CustomDefaultMenuItem.

See also:

IRibbonPanel