Defines OLE drag support.
Get
| C# | SftControlOLEDragModeConstants Mode = object.OLEDragMode; |
| VB.NET | Mode = object.OLEDragMode As SftControlOLEDragModeConstants |
| C++ | enum SftControlOLEDragModeConstants Mode = object->OLEDragMode; enum SftControlOLEDragModeConstants Mode = object->GetOLEDragMode(); |
| C | HRESULT object->get_OLEDragMode(enum SftControlOLEDragModeConstants* Mode); |
Put
| C# | SftControlOLEDragModeConstants object.OLEDragMode = Mode; |
| VB.NET | object.OLEDragMode = Mode As SftControlOLEDragModeConstants |
| C++ | enum SftControlOLEDragModeConstants object->OLEDragMode = Mode; void object->PutOLEDragMode(enum SftControlOLEDragModeConstants Mode); |
| C | HRESULT object->put_OLEDragMode(enum SftControlOLEDragModeConstants Mode); |
object
Mode
Defines OLE drag support.
| Name | Value | Description |
|---|---|---|
| OLEDragSftControlNone | 0 | None |
| OLEDragSftControlManual | 1 | Manual |
| OLEDragSftControlAutomatic | 2 | Automatic |
The OLEDragMode property defines whether the control can act as an OLE drag source. The default is OLEDragSftControlNone. p With OLEDragSftControlManual, the application starts an OLE drag & drop operation itself by calling the OLEDrag method, for example in the MouseDown event. The control then raises the OLEStartDrag event, which is used to provide data to the DataObject. p OLEDragSftControlAutomatic is not supported and causes an error.
See Also SftCalendar Object | Object Hierarchy