Assigns a selection UI handler to a given component. The handler will be called when the UI service needs information about the component. A single selection UI handler can be assigned to multiple components. When multiple components are dragged, only a single handler may control the drag. Because of this, only components that are assigned the same handler as the primary selection are included in drag operations. A selection UI handler is automatically unassigned when the component is removed from the container or disposed.
[Visual Basic] Sub AssignSelectionUIHandler( _ ByVal component As Object, _ ByVal handler As ISelectionUIHandler _ ) [C#] void AssignSelectionUIHandler( object component, ISelectionUIHandler handler ); [C++] void AssignSelectionUIHandler( Object* component, ISelectionUIHandler* handler ) = 0; [JScript] function AssignSelectionUIHandler( component : Object, handler : ISelectionUIHandler );
ISelectionUIService Interface | ISelectionUIService Members | System.WinForms.Design Namespace | removeSelectionUIHandler