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!

ISelectionUIService.BeginDrag

This can be called by an outside party to begin a drag of the currently selected set of components. At least one designer must have added a UI handler or else this method will always return false.

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

Parameters

rules
A set of selection rules that define what type of a drag you're interested in. This will be used to mask off components that don't have the capabilities that you want. The default ruleset is zero.
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 selection service will allow the drag to proceed.

See Also

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