NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ISelectionUIHandler.QueryBeginDrag

Queries to see if a drag operation is valid on this handler for the given set of components. If it returns true, BeginDrag will be called immediately after.

[Visual Basic]
Function QueryBeginDrag( _
   ByVal components() As Object, _
   ByVal rules As SelectionRules, _
   ByVal initialX As Integer, _
   ByVal initialY As Integer _
) As Boolean
[C#]
bool QueryBeginDrag(
   object[] components,
   SelectionRules rules,
   int initialX,
   int initialY
);
[C++]
bool QueryBeginDrag(
   Object* components[],
   SelectionRules rules,
   int initialX,
   int initialY
) = 0;
[JScript]
function QueryBeginDrag(
   components : Object[],
   rules : SelectionRules,
   initialX : int,
   initialY : int
) : Boolean;

Parameters

components
The set of components that is going to be dragged.
rules
The rules for the operation to begin, from SelectionRules
initialX
Starting X position, in screen coordinates, of the drag
initialY
Starting X position, in screen coordinates, of the drag

Return Value

true if the designer is going to be the one handling this drag, or false if not.

See Also

ISelectionUIHandler Interface | ISelectionUIHandler Members | System.WinForms.Design Namespace