Defines whether the control can act as an OLE drop target.
Get
| C# | SftBoxOLEDropModeConstants Mode = object.OLEDropMode; |
| VB.NET | Mode = object.OLEDropMode As SftBoxOLEDropModeConstants |
| C++ | enum SftBoxOLEDropModeConstants Mode = object->OLEDropMode; enum SftBoxOLEDropModeConstants Mode = object->GetOLEDropMode(); |
| C | HRESULT object->get_OLEDropMode(enum SftBoxOLEDropModeConstants* Mode); |
| VB | Mode = object.OLEDropMode As SftBoxOLEDropModeConstants |
Put
| C# | SftBoxOLEDropModeConstants object.OLEDropMode = Mode; |
| VB.NET | object.OLEDropMode = Mode As SftBoxOLEDropModeConstants |
| C++ | enum SftBoxOLEDropModeConstants object->OLEDropMode = Mode; void object->PutOLEDropMode(enum SftBoxOLEDropModeConstants Mode); |
| C | HRESULT object->put_OLEDropMode(enum SftBoxOLEDropModeConstants Mode); |
| VB | object.OLEDropMode = Mode As SftBoxOLEDropModeConstants |
object
Mode
Defines OLE drop support, determining whether the control can act as an OLE drop target.
| Mode | Value | Description |
|---|---|---|
| OLEDropSftBoxNone | 0 | The control is not a valid drop target. |
| OLEDropSftBoxManual | 1 | The control is a valid drop target and triggers the OLE drop events, allowing the application to handle the OLE drop operation. |
The OLEDropMode property defines whether the control can act as an OLE drop target.
If the control is a valid drop target (OLEDropSftBoxManual), the events OLEDragOver and OLEDragDrop occur when an item is dragged over the control or when an item is dropped.
See Also SftBox Object | Object Hierarchy