Back to Devexpress

SpreadsheetBehaviorOptions.Drag Property

officefileapi-devexpress-dot-xtraspreadsheet-dot-spreadsheetbehavioroptions-63fe2105.md

latest3.2 KB
Original Source

SpreadsheetBehaviorOptions.Drag Property

Gets or sets whether the Drag operation is permitted.

Namespace : DevExpress.XtraSpreadsheet

Assembly : DevExpress.Spreadsheet.v25.2.Core.dll

NuGet Package : DevExpress.Spreadsheet.Core

Declaration

csharp
[DefaultValue(DocumentCapability.Default)]
public DocumentCapability Drag { get; set; }
vb
<DefaultValue(DocumentCapability.Default)>
Public Property Drag As DocumentCapability

Property Value

TypeDefaultDescription
DocumentCapabilityDefault

A DocumentCapability enumeration value specifying the document’s capability to perform an operation.

|

Available values:

NameDescription
Default

The value is determined by the current setting. The default value is automatically set if it is not explicitly specified.

| | Disabled |

The feature is not allowed and the corresponding commands are shown disabled.

| | Enabled |

The feature is available and the corresponding commands are shown enabled.

| | Hidden |

The feature is not available and the corresponding commands are hidden.

|

Property Paths

You can access this nested property as listed below:

Object TypePath to Drag
SpreadsheetControlOptions

.Behavior .Drag

|

Remarks

When the Drag property is set to DocumentCapability.Disabled value, all drag operations in the SpreadsheetControl are disabled, including dragging ranges, pictures and comments. However, there are certain details concerning cell range operations which are described below.

The effect of different Drag settings on the selected range is as follows:

  • Default All drag operations are allowed. Fill handle (a small square in the lower-right corner of the selection, used to automatically fill adjacent cells with a data series) is enabled. The end-user can also move range data by dragging the selected range to another location.

  • Enabled

  • Disabled

See Also

Drop

FillHandle

MoveRange

SpreadsheetBehaviorOptions Class

SpreadsheetBehaviorOptions Members

DevExpress.XtraSpreadsheet Namespace