Spread Windows Forms 7.0 Product Documentation
AllowArrowKeysMoveActiveCell Property
See Also  Example Support Options
FarPoint.Win.Spread Assembly > FarPoint.Win.Spread.CellType Namespace > RichTextCellType Class : AllowArrowKeysMoveActiveCell Property


Glossary Item Box

Gets or sets whether to allow the arrow keys to move the active cell.

Syntax

Visual Basic (Declaration) 
Public Property AllowArrowKeysMoveActiveCell As FlagArrowKeys
Visual Basic (Usage)Copy Code
Dim instance As RichTextCellType
Dim value As FlagArrowKeys
 
instance.AllowArrowKeysMoveActiveCell = value
 
value = instance.AllowArrowKeysMoveActiveCell
C# 
public FlagArrowKeys AllowArrowKeysMoveActiveCell {get; set;}

Remarks

This property applies to the cell when the cell is in edit mode.

Example

This example uses the AllowArrowKeysMoveActiveCell property.
C#Copy Code
FarPoint.Win.Spread.CellType.RichTextCellType rtf = new FarPoint.Win.Spread.CellType.RichTextCellType();
rtf.WordWrap = true;
rtf.Multiline = true;
rtf.AllowArrowKeysMoveActiveCell = FarPoint.Win.Spread.FlagArrowKeys.All;
fpSpread1.ActiveSheet.Cells[1, 1].CellType = rtf;            
fpSpread1.ActiveSheet.Cells[1, 1].Value = @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033
{\fonttbl{\f0\fscript\fprq2\fcharset0 Comic Sans MS;}
{\f1\froman\fprq2\fcharset0 Times New Roman;}
{\f2\fswiss\fcharset0 Arial;}}{\colortbl ;\red128
\green0\blue128;\red0\green255\blue255;\red255\green0\
blue0;\red0\green255\blue0;\red0\green0\blue255;}
\viewkind4\uc1\pard\cf1\b\f0\fs24 Testing\cf2\b0\fs28 \cf3
\f1\fs40 1... \cf4\i 2... \cf5\ul\i0 3...\cf0\f2\fs20\par}";
VB.NETCopy Code
Dim rtb As New FarPoint.Win.Spread.CellType.RichTextCellType
rtb.Multiline = True
rtb.WordWrap = True
rtb.AllowArrowKeysMoveActiveCell = FarPoint.Win.Spread.FlagArrowKeys.All
FpSpread1.ActiveSheet.Cells(1, 1).CellType = rtb
FpSpread1.ActiveSheet.Cells(1, 1).Value = "{\rtf1\ansi\ansicpg1252\deff0\deflang1033" + _
"{\fonttbl{\f0\fscript\fprq2\fcharset0 Comic Sans MS;}" + _
"{\f1\froman\fprq2\fcharset0 Times New Roman;}" + _
"{\f2\fswiss\fcharset0 Arial;}}" + _
"{\colortbl ;\red128\green0\blue128;\red0\green255\blue255;" + _
"\red255\green0\blue0;" + _
"\red0\green255\blue0;\red0\green0\blue255;}" + _
"\viewkind4\uc1\pard\cf1\b\f0\fs24 Testing\cf2\b0\fs28" + _
" \cf3\f1\fs40 1... \cf4\i 2... \cf5\ul\i0 3...\cf0\f2\fs20\par" + _
"}"

Requirements

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

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.