Aller au contenu principal
Version: 20 R5 BETA

Configuration des zones 4D View Pro

Les propriétés de la zone 4D View Pro peuvent être configurées à l'aide de la liste des propriétés. Les propriétés des feuilles de calcul sont disponibles à l'aide du langage.

Propriétés de la zone de formulaire

Using the area's property list, you can set 4D View Pro object properties such as Object Name, Variable or Expression, Appearance, Action, and Events.

Sélection d'une interface utilisateur

Vous pouvez sélectionner l'interface à utiliser avec vos zones de formulaire 4D View Pro dans la Liste de propriétés, dans Apparence :

You can also use the userInterface and withFormulaBar(only with the "toolbar" interface) JSON properties.

Les interfaces permettent d'effectuer des modifications de base et de manipuler des données. Les modifications définies par l'utilisateur sont enregistrées dans l'objet 4D View Pro lorsque l'utilisateur enregistre le document.

Ruban

Toolbar (Barre d’outils)

Enabling the Toolbar interface displays the Show Formula Bar option. Si la case de l'option est cochée, la barre de formule est visible en-dessous de l'interface Barre d'outils.

Lorsque la barre de formule est visible :

Fonctionnalités

Les interfaces de Ruban et de Barre d'outils regroupent les fonctionnalités qui s'y rattachent dans des onglets :

OngletActionsInterface RubanInterface Barre d'outils
FileGestion de fichiersX
AccueilApparence du texteXX
InsérerAjouter des élémentsXX
FormulesCalculs de formules et bibliothèqueXX
DataGestion des donnéesXX
AffichagePrésentation visuelleXX
SettingsPrésentation de la feuilleX

Evénements formulaire

Les événements formulaire suivants sont disponibles dans la Liste de propriétés des zones 4D View Pro.

Certains de ces événements sont des événements formulaire standard (disponibles pour tous les objets actifs) et d'autres sont des événements formulaire spécifiques à 4D View Pro. Some standard form events provide extended information in the object returned by the FORM Event command when they are generated for 4D View Pro areas. Le tableau suivant indique les événements standard et les événements spécifiques ou ceux qui fournissent des informations supplémentaires aux zones 4D View Pro :

Événements 4D standardÉvénements 4D View Pro spécifiques et étendus
On LoadOn VP Ready
On Getting FocusOn Clicked
On Losing FocusOn Double Clicked
On UnloadOn Header Click
On After Edit
On Selection Change
On Column Resize
On Row Resize
On VP Range Changed

Options feuille

L'objet options feuille 4D View Pro vous permet de contrôler plusieurs options pour vos zones 4D View Pro. Cet objet est géré par les commandes suivantes :

Apparence de la feuille

PropriétéTypeDescription
allowCellOverflowbooleanIndique si les données peuvent déborder sur des cellules vides adjacentes.
sheetTabColorstringUne chaîne couleur utilisée pour représenter la couleur de l'onglet de la feuille, telle que "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", etc.
frozenlineColorstringUne chaîne couleur utilisée pour représenter la couleur de ligne figée, telle que "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", etc.
clipBoardOptionsentier longL'option presse-papiers. Available values: vk clipboard paste options all, vk clipboard paste options formatting, vk clipboard paste options formulas, vk clipboard paste options formulas and formatting, vk clipboard paste options values, vk clipboard paste options values and formatting
gridlineobjectLes options du quadrillage.
colorstringUne chaîne couleur utilisée pour représenter la couleur du quadrillage, telle que "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", etc.
showVerticalGridlinebooleanIndique s'il affiche le quadrillage vertical.
showHorizontalGridlinebooleanIndique s'il affiche le quadrillage horizontal.
rowHeaderVisiblebooleanIndique si l'en-tête de la ligne est visible.
colHeaderVisiblebooleanIndique si l'en-tête de la colonne est visible.
rowHeaderAutoTextentier longIndique si l'en-tête de la ligne affiche des lettres ou des chiffres ou s'il n'affiche rien. Valeurs disponibles : vk header auto text blank, vk header auto text letters, vk header auto text numbers
colHeaderAutoTextentier longIndique si l'en-tête de la colonne affiche des lettres ou des chiffres ou s'il n'affiche rien. Valeurs disponibles : vk header auto text blank, vk header auto text letters, vk header auto text numbers
selectionBackColorstringLa couleur d'arrière-plan de la sélection dans la feuille (de préférence au format Rgba).
selectionBorderColorstringLa couleur de bordure de la sélection dans la feuille.
sheetAreaOffsetobjectLes options de sheetAreaOffset.
leftentier longLe décalage gauche de la feuille à partir de l'hôte.
topentier longLe décalage supérieur de la feuille à partir de l'hôte.

Toutes les propriétés sont optionnelles.

Protection de la feuille

Pour verrouiller l'intégralité de la feuille, il suffit de mettre la propriété isProtected à vrai. Vous pouvez alors déverrouiller les cellules individuellement en définissant la propriété de style de la cellule verrouillée.

PropriétéTypeDescription
isProtectedbooleanIndique si les cellules protégées de cette feuille peuvent être modifiées ou non.
protectionOptionsobjectUne valeur qui indique les éléments que les utilisateurs peuvent modifier. Si null : le paramètre protectionOptions est réinitialisé.
allowSelectLockedCellsbooleanIndique si l'utilisateur peut sélectionner des cellules verrouillées, optionnel. Vrai par défaut.
allowSelectUnlockedCellsbooleanIndique si l'utilisateur peut sélectionner des cellules non verrouillées, optionnel. Vrai par défaut.
allowSortbooleanIndique si l'utilisateur peut trier des plages, optionnel. Faux par défaut.
allowFilterbooleanIndique si l'utilisateur peut filtrer des plages, optionnel. Faux par défaut.
allowEditObjectsbooleanIndique si l'utilisateur peut modifier des objets flottants, optionnel. Faux par défaut.
allowResizeRowsbooleanIndique si l'utilisateur peut redimensionner des lignes, optionnel. Faux par défaut.
allowResizeColumnsbooleanIndique si l'utilisateur peut redimensionner des colonnes, optionnel. Faux par défaut.
booleanbooleanIndique si l'utilisateur peut effectuer des opérations de glissement pour insérer des lignes, optionnel. Faux par défaut.
allowDragInsertColumnsbooleanIndique si l'utilisateur peut effectuer des opérations de glissement pour insérer des colonnes, optionnel. Faux par défaut.
allowInsertRowsbooleanIndique si l'utilisateur peut insérer des lignes, optionnel. Faux par défaut.
allowInsertColumnsbooleanIndique si l'utilisateur peut insérer des colonnes, optionnel. Faux par défaut.
allowDeleteRowsbooleanIndique si l'utilisateur peut supprimer des lignes, optionnel. Faux par défaut.
allowDeleteColumnsbooleanIndique si l'utilisateur peut supprimer des colonnes, optionnel. Faux par défaut.

Toutes les propriétés sont optionnelles.

Format des cellules

La définition d'un modèle de format garantit que le contenu de vos documents 4D View Pro s'affiche comme souhaité. Formats can be set using the selected 4D View Pro interface, or using the VP SET VALUE or VP SET NUM VALUE commands.

4D View Pro dispose de formats intégrés pour les chiffres, les dates, les heures et le texte, mais il vous est possible de créer vos propres modèles pour formater le contenu des cellules à l'aide de caractères et de codes spéciaux.

For example, when using the VP SET VALUE or VP SET NUM VALUE commands to enter amounts in an invoice, you may want the currency symbols ($, €, ¥, etc.) to be aligned regardless of the space required by the number (i.e., whether the amount is $5.00 or $5,000.00). You could use formatting characters and spectify the pattern ($* #,##0.00) which would display amounts as shown:

A noter que lorsque vous créez vos propres modèles, seul l'affichage des données est modifié. La valeur des données reste inchangée.

Format texte et format numérique

Les formats numériques s'appliquent à tous les types de chiffres (ex : nombres positifs, négatifs, les zéros).

CaractèreDescriptionExemple
0Placeholder that displays zeros.#.00 affichera 1.10 au lieu de 1.1
.Displays a decimal point0.00 affichera 1999.00 au lieu de 1999
,Displays the thousands separator in a number. Thousands are separated by commas if the format contains a comma enclosed by number signs "#" or by zeros. A comma following a digit placeholder scales the number by 1,000.#,0 affichera 12200000 au lieu de 12,200,000
_Skips the width of the next character.Usually used in combination with parentheses to add left and right indents, _( and _) respectively.
@Formatter for text. Applies the format to all text in the cell"[Red]@" applies the red font color for text values.
-Repeats the next character to fill the column width.0*- will include enough dashes after a number to fill the cell, whereas *0 before any format will include leading zeros.
" "Displays the text within the quotes without interpreting it."8%" sera affiché comme suit : 8%
%Displays numbers as a percentage of 100.8% sera affiché comme suit : .08
#Digit placeholder that does not display extra zeros. If a number has more digits to the right of the decimal than there are placeholders, the number is rounded up.#.# affichera 1.5 au lieu de 1.54
?Digit placeholder that leaves space for extra zeros, but does not display them. Typically used to align numbers by decimal point.$?? displays a maximum of 2 decimals and causes dollar signs to line up for varying amounts.
\ Displays the character following it.#.00\? affichera 123.00? au lieu de 123
/When used with numbers, displays them as fractions. When used with text, date or time codes, displayed "as-is".#/# affichera 3/4 au lieu de .75
[ ]Creates conditional formats.[>100][GREEN]#,##0;[<=-100][YELLOW]#,##0;[BLUE]#,##0
EScientific notation format.#E+# - affichera 2E+6 au lieu de 1,500,500
[color]Formats the text or number in the color specified[Green]###.##[Red]-###.###

Exemple

//Définir la valeur de la cellule sur $125,571.35
VP SET VALUE(VP Cell("ViewProArea";3;2);New object("value";125571.35;"format";"_($* #,##0.00_)")

Formats date et heure

4D View Pro fournit les constantes suivantes pour les modèles de date et heure au format ISO 8601 :

ConstanteValeurCommentaire
vk pattern full date time"fullDateTimePattern"ISO 8601 format for the full date and time in current localization.USA default pattern: "dddd, dd MMMM yyyy HH:mm:ss"
vk pattern long date"longDatePattern"ISO 8601 format for the full date in current localization.USA default pattern: "dddd, dd MMMM yyyy"
vk pattern long time"longTimePattern"ISO 8601 format for the time in current localization.USA default pattern: "HH:mm:ss"
vk pattern month day"monthDayPattern"ISO 8601 format for the month and day in current localization.USA default pattern: "MMMM dd"
vk pattern short date"shortDatePattern"Abbreviated ISO 8601 format for the date in current localization.USA default pattern: "MM/dd/yyyy"
vk pattern short time"shortTimePattern"Abbreviated ISO 8601 format for the time in current localization.USA default pattern: "HH:mm"
vk pattern sortable date time"sortableDateTimePattern"ISO 8601 format for the date and time in current localization which can be sorted.USA default pattern: "yyyy\'-\'MM\'-\'dd\'T\'HH\':\'mm\':\'ss"
vk pattern universal sortable date time"universalSortableDateTimePattern"ISO 8601 format for the date and time in current localization using UTC which can be sorted.USA default pattern: "yyyy\'-\'MM\'-\'dd HH\':\'mm\':\'ss\'Z\'"
vk pattern year month"yearMonthPattern"ISO 8601 format for the month and year in current localization.USA default pattern: "yyyy MMMM"

Exemple

//Définir la valeur de la cellule sur une date et une heure spécifique
VP SET VALUE(VP Cell("ViewProArea";3;9);New object("value";!2024-12-18!);"time";?14:30:10?;"format";vk pattern full date time))

Formats date et heure personnalisés

To create your own date and time patterns, in your current localization, you can use combinations of the following codes:

Code
(non sensible à la casse)
DescriptionExemple
Date(January 1, 2019)
mNuméro du mois sans le premier zéro1
mmNuméro du mois avec le zéro en préfixe01
mmmNom du mois, courtJan
mmmmNom du mois, longJanuary
dNuméro du jour sans le zéro en préfixe1
ddNuméro du jour avec le zéro en préfixe01
dddJour de la semaine, courtTue
ddddJour de la semaine, longTuesday
yyAnnée, format court19
yyyyAnnée, long format2019
Time(2:03:05 PM)
hHeure sans le zéro en préfixe. 0-232
hhHeure avec le zéro en préfixe. 00-2302
mMinutes sans le zéro en préfixe. 0-593
mmMinutes avec le zéro en préfixe. 00-5903
sSecondes sans le zéro en préfixe. 0-595
ssSecondes avec le zéro en préfixe. 00-5905
[h]Temps écoulé en heures14 (peut aller au delà de 24)
[mm]Temps écoulé en minutes843
[ss]Temps écoulé en secondes50585
AM/PMPériodes de la journée. S'il est omis, c'est le fomat de 24 heures qui est utilisé.PM

The code 'm' is interpreted depending on its position in the pattern. If it's immediately after 'h' or 'hh' or immediately before 's' or 'ss', it will be interpreted as minutes, otherwise it will be interpreted as months.

Symboles supplémentaires

In addition to the special characters and codes described in the previous sections, there are additional characters and symbols that can be used in your format patterns. These additional characters and symbols do not require a \ or "" and do not impact the interpretation of the format pattern. They appear "as-is" within the pattern.

CaractèreDescriptionExemple
- et -Plus and minus signs### + ### = ###,###
( )Left and right parenthesis(-###.##)
:Colonhh:mm:ss
^Caret#\^#
'Apostrophe'######
{ }Curly brackets{###,###,###}
< >Less-than and greater than signs## >##
=Equal sign#+#=##
/Forward slash. When used with numbers, displays them as fractions.mm/dd/yyyy
!Exclamation point$###.00!
&Ampersand"Hello" & "Welcome"
~Tilde~##
Space character
Euro€###.00
£British Pound£###.00
¥Japanese Yen¥###.00
$Dollar sign$###.00
¢Cent sign.00¢

Attributs d'impression

4D View Pro print attributes allow you to control all aspects of printing 4D View Pro areas. These attributes are handled by the following commands:

Colonnes / Lignes

Les attributs de ligne et de colonne sont utilisés pour identifier le début, la fin et la répétition des lignes et colonnes.

PropriétéTypeDescription
columnEndentier longThe last column to print in a cell range. Default value = -1 (all columns)
columnStartentier longThe first column to print in a cell range. Default value = -1 (all columns)
repeatColumnEndentier longThe last column of a range of columns to print on the left of each page. Default value = -1 (all columns)
repeatColumnStartentier longThe first column of a range of columns to print on the left of each page. Default value = -1 (all columns)
repeatRowEndentier longThe last row of a range of rows to print on the top of each page. Default value = -1 (all rows)
repeatRowStartentier longThe first row of a range of rows to print at the top of each page. Default value = -1 (all rows)
rowEndentier longThe last row to print in a cell range. Default value = -1 (all rows)
rowStartentier longThe first row to print in a cell range. Default value = -1 (all rows)

Headers / Footers

Header and footer attributes are used to specify text or images in the left, right, and center header/footer sections.

PropriétéTypeDescription
footerCentertextThe text and format of the center footer on printed pages.
footerCenterImagepicture | text*The image for the center section of the footer.
footerLefttextThe text and format of the left footer on printed pages.
footerLeftImagepicture | text*The image for the left section of the footer.
footerRighttextThe text and format of the right footer on printed pages.
footerRightImagepicture | text*The image for the right section of the footer.
headerCentertextThe text and format of the center header on printed pages.
headerCenterImagepicture | text*The image for the center section of the header.
headerLefttextThe text and format of the left header on printed pages.
headerLeftImagepicture | text*The image for the left section of the header.
headerRighttextThe text and format of the right header on printed pages.
headerRightImagepicture | text*The image for the right section of the header.

* If using text type, pass the filepath (absolute or relative) of the image. If you pass a relative path, the file should be located next to the database structure file. In Windows, the file extension must be indicated. No matter the type used to set an image, the image itself (not a reference) is stored in the 4D View Pro area and is returned by VP Get print info.

Caractères spéciaux

The following special characters allow the automatic addition or formatting of information in the header and footer when the 4D View Pro area is printed.

CaractèreDescriptionExempleRésultat
&Escape character(see examples below)
PCurrent pageprintInfo.headerLeft:="This is page &P."This is page 5.
NPage countprintInfo.headerLeft:="There are &N pages."There are 10 pages.
DCurrent date (yyyy/mm/dd format)printInfo.headerLeft:="It is &D."It is 2015/6/19.
TCurrent timeprintInfo.headerLeft:="It is &T."It is 16:30:36.
GImageprintInfo.headerLeftImage:=smiley
printInfo.headerLeft:="&G"
SStrikethroughprintInfo.headerLeft:="&SThis is text."This is text.
USoulignéprintInfo.headerLeft:="&UThis is text."This is text. (Underlined)
BSoulignéprintInfo.headerLeft:="&BThis is text."This is text.
IItaliqueprintInfo.headerLeft:="&IThis is text."This is text.
"Font prefixprintInfo.headerLeft:="&\"Lucida Console\"&14This is text."
KText Color prefixprintInfo.headerLeft:="&KFF0000This is text."This is text (in red).
FWorkbook nameprintInfo.headerLeft:="&F"2019 Monthly Revenue Forecasts
ASpreadsheet nameprintInfo.headerLeft:="&A"June 2019 revenue forecast

Margins

Margin attributes are used to specify the 4D View Pro area margins for printing. Expressed in hundreds of an inch.

PropriétéTypeDescription
marginobjectThe print margins
topentier longTop margin, in hundredths of an inch. Default value = 75
bottomentier longBottom margin, in hundredths of an inch. Default value = 75
leftentier longLeft margin, in hundredths of an inch. Default value = 70
rightentier longRight margin, in hundredths of an inch. Default value = 70
headerentier longHeader offset, in hundredths of an inch. Default value = 30
footerentier longFooter offset, in hundredths of an inch. Default value = 30

Orientation

Orientation attributes are used to specify the direction the printed page layout.

This attribute defines rendering information only.

PropriétéTypeDescription
orientationentier longPage orientation. Available values: vk print page orientation landscape, vk print page orientation portrait (default)

Page

Page attributes are used to specify general document print settings.

PropriétéTypeDescription
blackAndWhitebooleanPrinting in black and white only.

Default value = false

Note: PDFs are not affected by this attribute. Colors in PDFs remain.

centeringentier longHow the contents are centered on the printed page. Available values: vk print centering both, vk print centering horizontal, vk print centering none (default), vk print centering vertical
firstPageNumberentier longThe page number to print on the first page.Default value = 1
pageOrderentier longThe order pages are printed. Available values: vk print page order auto (default), vk print page order down then over, vk print page order over then down.
pageRangetextThe range of pages for printing
qualityFactorentier longThe quality factor for printing (1 - 8). The higher the quality factor, the better the printing quality, however printing performance may be affected.

Default value = 2

useMaxbooleanOnly columns and rows with data are printed.

Default value = true

zoomFactorréelThe amount to enlarge or reduce the printed page.

Default value = 1

Paper Size

Paper size attributes are used to specify the dimensions or model of paper to use for printing. There are two ways to define paper size:

  • Custom size - height and width attributes
  • Standard size - kind attribute
PropriétéTypeDescription
paperSizeobjectPaper dimensions (height, width) or specific format (kind) for printing.
heightentier longHeight of the paper, in hundredths of an inch.
widthentier longWidth of the paper, in hundredths of an inch.
kindtextName of standard paper size (e.g., A2, A4, legal, etc.) returned by Get Print Option. Default value = "letter"
  • If the paper size is specified using the height and width properties, VP Get print info returns a paper size with custom as value for kind.

  • If you set the paper size using the kind property, you can use either:

Echelle

Scale attributes are used to specify printing optimization and adjustments.

PropriétéTypeDescription
bestFitColumnsbooleanColumn width is adjusted to fit the largest text width for printing. Default value = "false"
bestFitRowsbooleanRow height is adjusted to fit the tallest text height for printing. Default value = "false"
fitPagesTallentier longThe number of vertical pages (portrait orientation) to check when optimizing printing. Default value = -1
fitPagesWideentier longThe number of horizontal pages (landscape orientation) to check when optimizing printing. Default value = -1

Show / Hide

Show / Hide attributes are used to specify the visibility (printing) of 4D View Pro area elements.

PropriétéTypeDescription
showBorderbooleanPrints the outline border.Default value = "true"
showColumnHeaderentier longColumn header print settings. Available values: vk print visibility hide, vk print visibility inherit (default), vk print visibility show, vk print visibility show once
showGridLinebooleanPrints the gridlines. Default value = "false"
showRowHeaderentier longRow headers print settings. Available values: vk print visibility hide, vk print visibility inherit (default), vk print visibility show, vk print visibility show once

Watermark

Watermark attributes are used to superimpose text or an image onto the 4D View Pro area.

PropriétéTypeDescription
watermarkcollectionCollection of watermark settings. Default value: undefined
[ ].heightentier longThe height of the watermark text / image.
[ ].imageSrcpicture | text*The watermark text / image.
[ ].pagetextThe page(s) where the watermark is printed. For all pages: "all". For specific pages: page numbers or page ranges separated by commas. Ex.: "1,3,5-12"
[ ].widthentier longThe width of the watermark text / image.
[ ].xentier longThe horizontal coordinate of the top left point of the watermark text / image.
[ ].yentier longThe vertical coordinate of the top left point of the watermark text / image.

* If using text type, pass the filepath (absolute or relative) of the image. If you pass a relative path, the file should be located next to the database structure file. In Windows, the file extension must be indicated. No matter the type used to set an image, the image itself (not a reference) is stored in the 4D View Pro area and is returned by VP Get print info.

Style Objects

4D View Pro style objects and style sheets allow you to control the graphical aspects and the look of your 4D View Pro documents.

Style objects & Style sheets

Style objects contain the style settings. They can be used either in a style sheet or on their own. Style objects can also be used in addition to a style sheet so that different settings can be specified for individual cell ranges without affecting the rest of the document. You can use style objects directly with the VP SET CELL STYLE and VP SET DEFAULT STYLE commands. You can also use style objects when defining custom table themes using the VP SET TABLE THEME or VP CREATE TABLE commands.

A style sheet groups together a combination of properties in a style object to specify the look of all of the cells in your 4D View Pro documents. Style sheets saved with the document can be used to set the properties for a single sheet, multiple sheets, or an entire workbook. When created, a 4D View Pro style sheet is given a name which is saved within the style sheet in the "name" property. This allows a style sheet to be easily used and, if thoughtfully selected, can facilitate its identification and purpose (e.g., Letterhead_internal, Letterhead_external).

Style sheets are created with the VP ADD STYLESHEET command and applied with the the VP SET DEFAULT STYLE or VP SET CELL STYLE commands. You can remove a style sheet with the VP REMOVE STYLESHEET command.

The VP Get stylesheet command can be used to return the style object of a single style sheet or you can use the VP Get stylesheets command to retrieve a collection of style objects for multiple style sheets.

Style object properties

Voici un exemple :

 $style:=New object
$style.hAlign:=vk horizontal align left
$style.font:="12pt papyrus"
$style.backColor:="#E6E6FA" //light purple color

VP SET DEFAULT STYLE("myDoc";$style)

Background & Foreground

PropriétéTypeDescriptionValeurs possibles
backColortextDefines the color of the background.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)
backgroundImagepicture, textSpecifies a background image.Can be specified directly or via the image path (full path or file name only). If the file name only is used, the file must be located next to the database structure file. No matter how set (picture or text), a picture is saved with the document. This could impact the size of a document if the image is large. Note for Windows: File extension must be included.
backgroundImageLayoutentier longDefines the layout for the background image.vk image layout center, vk image layout none, vk image layout stretch, vk image layout zoom
foreColortextDefines the color of the foreground.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)

Bordures

PropriétéTypeDescriptionValeurs possibles
borderBottom, borderLeft, borderRight, borderTop, diagonalDown, diagonalUpobjectDefines the corresponding border line
colortextDefines the color of the border. Default = black.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)
styleentier longDefines the style of the border. Default = empty. Cannot be null or undefined.vk line style dash dot, vk line style dash dot dot, vk line style dashed, vk line style dotted, vk line style double, vk line style empty, vk line style hair, vk line style medium, vk line style medium dash dot, vk line style medium dash dot dot,vk line style medium dashed, vk line style slanted dash dot, vk line style thick

Polices et texte

PropriétéTypeDescriptionValeurs possibles
fonttextSpecifies the font characteristics in CSS font shorthand ("font-style font-variant font-weight font-size/line-height font-family"). Example: "14pt Century Gothic". The font-size and font-family values are mandatory. If one of the other values is missing, their default values are used. Note: If a font name contains a space, the name must be within quotes.A CSS font shorthand. 4D provides utility commands to handle font characteristics as objects: VP Font to object and VP Object to font
formattertextModèle pour la propriété value/time.Number/text/date/time formats, special characters. See Cell Format.
isVerticalTextbooleanSpecifies text direction.True = vertical text, False = horizontal text.
labelOptionsobjectDefines cell label options (watermark options).
alignmententier longSpecifies the position of the cell label. Optional property.vk label alignment top left, vk label alignment bottom left, vk label alignment top center, vk label alignment bottom center, vk label alignment top right, vk label alignment bottom right
visibilityentier longSpecifies the visibility of the cell label. Optional property.vk label visibility auto, vk label visibility hidden, vk label visibility visible
foreColortextDefines the color of the foreground. Optional property.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)
fonttextSpecifies the font characteristics with CSS font shorthand ("font-style font-variant font-weight font-size/line-height font-family"). The font-size and font-family values are mandatory.
textDecorationentier longSpecifies the decoration added to text.vk text decoration double underline, vk text decoration line through, vk text decoration none, vk text decoration overline, vk text decoration underline
textIndententier longDefines the unit of text indention. 1 = 8 pixels
textOrientationentier longDefines the rotation angle of the text in a cell. Number between -90 and 90
watermarktextDefines the watermark (cell label) content
wordWrapbooleanSpecifies if text should be wrapped.True = wrapped text, False = unwrapped text

Affichage

PropriétéTypeDescriptionValeurs possibles
cellPaddingtextDefines the cell padding
hAlignentier longDefines the horizontal alignment of cell contents.vk horizontal align center, vk horizontal align general, vk horizontal align left, vk horizontal align right
lockedbooleanSpecifies cell protection status. Note, this is only available if sheet protection is enabled.True = locked, False = unlocked.
shrinkToFitbooleanSpecifies if the contents of the cell should be reduced.True = reduced content, False = no reduction.
tabStopbooleanSpecifies if the focus to the cell can be set using the Tab key.True = Tab key sets focus, False = Tab key does not set focus.
vAlignentier longSpecifies the vertical alignment of cell contents.vk vertical align bottom, vk vertical align center, vk vertical align top

Style information

PropriétéTypeDescription
nametextDefines the name of the style
parentNametextSpecifies the style that the current style is based on. Values from the parent style will be applied, then any values from the current style are applied. Changes made in the current style will not be refelected in the parent style. Only available when using a style sheet.

Objet 4D View Pro

The 4D View Pro object stores the whole spreadsheet contents. It is automatically handled by 4D View Pro. You can set or get this object using the VP IMPORT FROM OBJECT or VP Export to object commands.

Il contient les propriétés suivantes :

PropriétéValue typeDescription
versionLongintInternal component version
dateCreationTimestampCreation date
dateModifiedTimestampLast modification date
metaObjectFree contents, reserved for the 4D developer
spreadJSObjectReserved for the 4D View Pro component

4D View Pro Form Object Variable

The 4D View Pro form object variable is the object variable associated to the 4D View Pro form area. It manages information used by the 4D View Pro object.

The 4D View Pro form object variable is for information purposes only (i.e., debugging). Under no circumstances should it be modified.

Il contient les propriétés suivantes :

PropriétéValue typeDescription
ViewPro.areaTextNom de la zone 4D View Pro
ViewPro.callbacksObjectStores temporary information necessary for commands requiring callbacks such as importing and exporting.
ViewPro.commandBuffersCollectionStores sequentially the commands called by the method and executes them as a batch (rather than individually) when exiting the method, when a command returns a value, or when the VP FLUSH COMMANDS is called. This mechanism increases performance by reducing the number of requests sent.
ViewPro.eventsObjectEvent list.
ViewPro.formulaBarBooleanIndicates whether or not the formula bar is displayed. Available only for the "toolbar" interface.
ViewPro.initedBooleanIndicates whether or not the 4D View Pro area has been initialized (see On VP Ready event).
ViewPro.interfaceTextSpecifies the type of user interface:"ribbon", "toolbar", "none".