This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v19
4D View Pro Sheet Options

4D View Pro Sheet Options  


 

 

4D View Pro sheet options object allows you to control various options of your 4D View Pro areas. This object is handled by the following commands:

PropertyTypeDescription
allowCellOverflowbooleanSpecifies whether data can overflow into adjacent empty cells.
sheetTabColorstringA color string used to represent the sheet tab color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.
frozenlineColorstringA color string used to represent the frozen line color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.
clipBoardOptionslongintThe clipboard option.
Constant Value Comment
vk clipboard paste options all 0

Pastes all data objects, including values, formatting, and formulas.

vk clipboard paste options formatting 2

Pastes only formatting.

vk clipboard paste options formulas 3

Pastes only formulas.

vk clipboard paste options formulas and formatting 5

Pastes formulas and formatting.

vk clipboard paste options values 1

Pastes only values.

vk clipboard paste options values and formatting 4

Pastes values and formatting.

gridlineobjectThe grid line's options.
colorstringA color string used to represent the grid line color, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.
showVerticalGridlinebooleanSpecifies whether to show the vertical grid line.
showHorizontalGridlinebooleanSpecifies whether to show the horizontal grid line.
rowHeaderVisiblebooleanSpecifies whether the row header is visible.
colHeaderVisiblebooleanSpecifies whether the column header is visible.
rowHeaderAutoTextlongintSpecifies whether the row header displays letters or numbers or is blank. 
Constant Value Comment
vk header auto text blank 0

Displays blanks in the headers.

vk header auto text letters 2

Displays letters in the headers.

vk header auto text numbers 1

Displays numbers in the headers.

colHeaderAutoTextlongintSpecifies whether the column header displays letters or numbers or is blank.
Constant Value Comment
vk header auto text blank 0

Displays blanks in the headers.

vk header auto text letters 2

Displays letters in the headers.

vk header auto text numbers 1

Displays numbers in the headers.

selectionBackColorstringThe selection's background color for the sheet. (preferred RGBA format)
selectionBorderColorstringThe selection's border color for the sheet.
sheetAreaOffsetobjectThe sheetAreaOffset's options.
leftlongintThe offset left of sheet from host.
toplongintThe offset top of sheet from host.

Note: All properties are optional.

To lock the whole sheet, you only need to set the isProtected property to true. You can then unlock cells individually by setting the locked cell style property (see 4D View Pro Style Objects and Style Sheets). 
 

PropertyTypeDescription
isProtectedbooleanSpecifies whether cells on this sheet that are marked as protected cannot be edited.
protectionOptionsobjectA value that indicates the elements that you want users to be able to change. If null : the protectionOptions parameter is reset.
allowSelectLockedCellsbooleanSpecifies whether the user can select locked cells, optional. True by default.
allowSelectUnlockedCellsbooleanSpecifies whether the user can select unlocked cells, optional. True by default.
allowSortbooleanSpecifies whether the user can sort ranges, optional. False by default.
allowFilterbooleanSpecifies whether the user can filter ranges, optional. False by default.
allowEditObjectsbooleanSpecifies whether the user can edit floating objects, optional. False by default.
allowResizeRowsbooleanSpecifies whether the user can resize rows, optional. False by default.
allowResizeColumnsbooleanSpecifies whether the user can resize columns, optional. False by default.
allowDragInsertRowsbooleanSpecifies whether the user can perform the drag operation to insert rows, optional. False by default.
allowDragInsertColumnsbooleanSpecifies whether the user can perform the drag operation to insert columns, optional. False by default.
allowInsertRowsbooleanSpecifies whether the user can insert rows, optional. False by default.
allowInsertColumnsbooleanSpecifies whether the user can insert columns, optional. False by default.
allowDeleteRowsbooleanSpecifies whether the user can delete rows, optional. False by default.
allowDeleteColumnsbooleanSpecifies whether the user can delete columns, optional. False by default.

Note: All properties are optional.



See also 

VP Get sheet options
VP SET SHEET OPTIONS

 
PROPERTIES 

Product: 4D
Theme: 4D View Pro Language

 
PAGE CONTENTS 
 
HISTORY 

 
ARTICLE USAGE

4D View Pro Reference ( 4D v19)