Esempio n. 1
0
        public WebDragSourceAction dragSourceActionMaskForPoint(WebView WebView, ref tagPOINT point)
        {
            Node e = owner.ElementAtPoint(new Point(point.x, point.y));

            if (e.Type == ElementType.Image)
            {
                return(WebDragSourceAction.WebDragSourceActionImage);
            }
            else if (e.Type == ElementType.LinkOrUknown)
            {
                return(WebDragSourceAction.WebDragSourceActionLink);
            }
            else if (!string.IsNullOrEmpty(owner.SelectedText))
            {
                return(WebDragSourceAction.WebDragSourceActionSelection);
            }
            else
            {
                return(WebDragSourceAction.WebDragSourceActionAny);
            }
        }