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

OnRibbonMouseUp() private method

private OnRibbonMouseUp ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void OnRibbonMouseUp(object sender, MouseEventArgs e)
        {
            // Get any component associated with the current mouse position
            Component component = _ribbon.DesignerComponentFromPoint(new Point(e.X, e.Y));

            if (component != null)
            {
                // Select the component
                ArrayList selectionList = new ArrayList();
                selectionList.Add(component);
                _selectionService.SetSelectedComponents(selectionList, SelectionTypes.Auto);

                // Force the layout to be update for any change in selection
                _ribbon.PerformLayout();
            }
        }