AddReferenceElement(Value: IBaseRibbonElement);
AddReferenceElement(Value: Prognoz.Platform.Interop.Forms.IBaseRibbonElement);
Value. The control, a reference to which is added.
The AddReferenceElement method adds a control, which is a reference to a control on the other panel, to the ribbon panel.
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.
The method use is given in the example for IRibbon.CustomDefaultMenuItem.
See also: