ComponentFactory.Krypton.Toolkit.ViewManager.DoubleClick C# (CSharp) Method

DoubleClick() public method

Perform double click processing.
public DoubleClick ( Point pt ) : void
pt Point Control coordinates point.
return void
        public virtual void DoubleClick(Point pt)
        {
            // If there is an active element
            if (ActiveView != null)
                ActiveView.DoubleClick(pt);

            // Generate event to indicate the view manager has processed a mouse up
            if (DoubleClickProcessed != null)
                DoubleClickProcessed(this, pt);
        }

Usage Example

Beispiel #1
0
        /// <summary>
        /// Raises the DoubleClick event.
        /// </summary>
        /// <param name="e">A KeyEventArgs that contains the event data.</param>
        protected override void OnDoubleClick(EventArgs e)
        {
            // Cannot process a message for a disposed control
            if (!IsDisposed)
            {
                // Do we have a manager for processing mouse messages?
                ViewManager?.DoubleClick(PointToClient(MousePosition));
            }

            // Let base class fire events
            base.OnDoubleClick(e);
        }
All Usage Examples Of ComponentFactory.Krypton.Toolkit.ViewManager::DoubleClick