Spread Windows Forms 10.0 Product Documentation
OperationMode Property
Example 


Gets or sets the mode that determines mouse, keyboard, and selection behavior for this sheet.
Syntax
'Declaration
 
Public Property OperationMode As OperationMode
'Usage
 
Dim instance As SheetView
Dim value As OperationMode
 
instance.OperationMode = value
 
value = instance.OperationMode
public OperationMode OperationMode {get; set;}

Property Value

OperationMode setting that determines the mode
Exceptions
ExceptionDescription
System.ComponentModel.InvalidEnumArgumentException Specified operation mode is not valid
Remarks

When this property is set to OperationMode.Normal or OperationMode.ReadOnly,

When this property is set, related properties are also set automatically as summarized in this table:

OperationMode
Setting

Effect on Other Properties
Normal SelectionPolicy = SelectionPolicy.Range
SelectionUnit = SelectionUnit.Cell
ReadOnly SelectionPolicy = SelectionPolicy.Range
SelectionUnit = SelectionUnit.Cell
RowMode SelectionPolicy = SelectionPolicy.Range
SelectionUnit = SelectionUnit.Cell
SingleSelect SelectionPolicy = SelectionPolicy.Single
SelectionUnit = SelectionUnit.Row
MultiSelect SelectionPolicy = SelectionPolicy.MultiRange
SelectionUnit = SelectionUnit.Row
ExtendedSelect SelectionPolicy = SelectionPolicy.MultiRange
SelectionUnit = SelectionUnit.Row

 

For information on the settings of OperationMode, refer to the OperationMode enumeration.

Example
This example sets the operation mode for the active sheet.
fpSpread1.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.RowMode;
FpSpread1.ActiveSheet.OperationMode = FarPoint.Win.Spread.OperationMode.RowMode
Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows Server 2012 R2, Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8, Windows 8.1, Windows 10

See Also

Reference

SheetView Class
SheetView Members
SelectionBlockOptions Property (FpSpread Class)
SelectionBlockOptions Property (SpreadView Class)
SelectionUnit Property
SelectionPolicy Property
OperationMode Enumeration

User-Task Documentation

Specifying What the User Can Select

 

 


Copyright © GrapeCity, inc. All rights reserved.