ComponentFactory.Krypton.Ribbon.KryptonRibbonDesigner.OnRibbonDoubleClick C# (CSharp) Method

OnRibbonDoubleClick() private method

private OnRibbonDoubleClick ( object sender, Point pt ) : void
sender object
pt Point
return void
        private void OnRibbonDoubleClick(object sender, Point pt)
        {
            // Get any component associated with the current mouse position
            Component component = _ribbon.DesignerComponentFromPoint(pt);

            // We are only interested in the contained components and not the ribbon control
            if ((component != null) && !(component is Control))
            {
                // Get the designer for the component
                IDesigner designer = _designerHost.GetDesigner(component);

                // Request code for the default event be generated
                designer.DoDefaultAction();
            }
        }