Saltar para o conteúdo principal
Versão: v20 R2 BETA

Configuração das áreas 4D View Pro

As propriedades da área 4D View Pro podem ser configuradas utilizando a lista de propriedades. As propriedades da folha de cálculo estão disponíveis através da linguagem.

Propriedades da área do formulário

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.

Selecção de uma interface utilizador

You can select the interface to use with your 4D View Pro form areas in the Property List, under Appearance:

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

As interfaces permitem modificações básicas e a manipulação de dados. User-defined modifications are saved in the 4D View Pro object when the user saves the document.

Ribbon

Barra de ferramentas

Enabling the Toolbar interface displays the Show Formula Bar option. When selected, the formula bar is visible below the Toolbar interface.

With visible formula bar:

Funcionalidades

Both the Ribbon and the Toolbar interfaces group related features into tabs:

TabAcçõesRibbon InterfaceInterface da barra de ferramentas
FileManipulação de ficheirosX
InicioAspecto do textoXX
InserirAdicionar itensXX
FórmulasCálculo de fórmulas e bibliotecaXX
DadosManipulação de dadosXX
MostrarApresentação visualXX
SettingsPresentação da folhaX

Eventos formulário

The following form events are available in the Property List for 4D View Pro areas.

Some of the events are standard form events (available to all active objects) and some are specific 4D View Pro form events. 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. The following table shows which events are standard and which are specific or provide additional information to 4D View Pro areas:

Eventos 4D ‘standard’Eventos 4D View Pro específicos e alargados
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

Opções folha

The 4D View Pro sheet options object allows you to control various options of your 4D View Pro areas. Este objeto é tratado pelos seguintes comandos:

Aspecto da folha

PropriedadeTipoDescrição
allowCellOverflowbooleanEspecifica se os dados podem transbordar para células vazias adjacentes.
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.
clipBoardOptionsinteiro longoThe clipboard option. Valores disponibles: 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
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.
showVerticalGridlinebooleanEspecifica se a linha de grelha vertical deve ser mostrada.
showHorizontalGridlinebooleanEspecifica se a linha de grelha horizontal deve ser mostrada.
rowHeaderVisiblebooleanEspecifica se o cabeçalho da linha é visível.
colHeaderVisiblebooleanEspecifica se o cabeçalho da coluna é visível.
rowHeaderAutoTextinteiro longoSpecifies whether the row header displays letters or numbers or is blank. Valores disponíveis: vk header auto text blank, vk header auto text letters, vk header auto text numbers
colHeaderAutoTextinteiro longoSpecifies whether the column header displays letters or numbers or is blank. Valores disponíveis: vk header auto text blank, vk header auto text letters, vk header auto text numbers
selectionBackColorstringA cor de fundo da seleção para a folha. (formato RGBA preferido)
selectionBorderColorstringA cor do contorno da seleção para a folha.
sheetAreaOffsetobjectAs opções de sheetAreaOffset.
leftinteiro longoThe offset left of sheet from host.
topinteiro longoO deslocamento superior da folha em relação ao host.

Todas as propriedades são opcionais.

Protecção da folha

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.

PropriedadeTipoDescrição
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. Se null: o parâmetro protectionOptions é reposto.
allowSelectLockedCellsbooleanEspecifica se o usuário pode selecionar células bloqueadas, opcional. True por defeito.
allowSelectUnlockedCellsbooleanEspecifica se o usuário pode selecionar células desbloqueadas, opcional. True por defeito.
allowSortbooleanEspecifica se o usuário pode ordenar intervalos, opcional. Padrão é falso.
allowFilterbooleanEspecifica se o usuário pode filtrar intervalos, opcional. Padrão é falso.
allowEditObjectsbooleanEspecifica se o usuário pode editar objetos flutuantes, opcional. Padrão é falso.
allowResizeRowsbooleanEspecifica se o usuário pode redimensionar as linhas, opcional. Padrão é falso.
allowResizeColumnsbooleanEspecifica se o usuário pode redimensionar colunas, opcional. Padrão é falso.
allowDragInsertRowsbooleanSpecifies whether the user can perform the drag operation to insert rows, optional. Padrão é falso.
allowDragInsertColumnsbooleanSpecifies whether the user can perform the drag operation to insert columns, optional. Padrão é falso.
allowInsertRowsbooleanEspecifica se o usuário pode inserir linhas, opcional. Padrão é falso.
allowInsertColumnsbooleanEspecifica se o usuário pode inserir colunas, opcional. Padrão é falso.
allowDeleteRowsbooleanEspecifica se o usuário pode eliminar linhas, opcional. Padrão é falso.
allowDeleteColumnsbooleanEspecifica se o usuário pode eliminar colunas, opcional. Padrão é falso.

Todas as propriedades são opcionais.

Formato das células

Defining a format pattern ensures that the content of your 4D View Pro documents is displayed the way you intended. Formats can be set using the selected 4D View Pro interface, or using the VP SET VALUE or VP SET NUM VALUE methods.

4D View Pro has built-in formats for numbers, dates, times, and text, but you can also create your own patterns to format the contents of cells using special characters and codes.

For example, when using the VP SET VALUE or VP SET NUM VALUE methods 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:

Note that when creating your own format patterns, only the display of the data is modified. O valor dos dados mantém-se inalterado.

Formatos número e texto

Number formats apply to all number types (e.g., positive, negative, and zeros).

CaracteresDescriçãoExemplo
0Marcador de posição mostrando zeros.#.00 mostrará 1.1 como 1.10
.Displays a decimal point0.00 mostrará 1999 como 1999.00
,Mostra o separador de milhares num número. 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 mostrará 12200000 como 12,200,000
_Salta a largura do carácter seguinte.Usually used in combination with parentheses to add left and right indents, _( and _) respectively.
@Formatador de texto. Aplica o formato a todo o texto da célula"[Red]@" aplica a cor de letra vermelha aos valores de texto.
*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%" will display as: 8%
%Mostra os números como uma percentagem de 100.8% será exibido como 0,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.#.# mostrará 1.54 como 1.5
?Digit placeholder that leaves space for extra zeros, but does not display them. Normalmente utilizado para alinhar números pelo ponto decimal.$?? displays a maximum of 2 decimals and causes dollar signs to line up for varying amounts.
\ Displays the character following it.#.00\? mostrará 123 como 123.00?
/Quando utilizado com números, apresenta-os como fracções. Quando utilizado com códigos de texto, data ou hora, é apresentado "tal e qual".#/# mostrará .75 como 3/4
[ ]Cria formatos condicionais.[>100][GREEN]#,##0;[<=-100][YELLOW]#,##0;[BLUE]#,##0
EFormato notação científica.#E+# - mostrará 1.500.500 como 2E+6
[color]Formata o texto ou número na cor especificada[Green]###.##[Red]-###.###

Exemplo

//Set the cell value as $125,571.35 VP SET VALUE(VP Cell("ViewProArea";3;2);New object("value";125571.35;"format";"_($* #,##0.00_)")

Date and time formats

4D View Pro provides the following constants for ISO 8601 date and time patterns:

ParâmetrosValorComentário
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"

Exemplo

//Set the cell value as specific date and time VP SET VALUE(VP Cell("ViewProArea";3;9);New object("value";!2024-12-18!);"time";?14:30:10?;"format";vk pattern full date time))

Formatos data e hora personalizados

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

Código
(não sensível a maiúsculas e minúsculas)
DescriçãoExemplo
Date(January 1, 2019)
mNúmero do mês sem zero à esquerda1
mmNúmero do mês com zero à esquerda01
mmmNome do mês, abreviadoJan
mmmmNome do mês, longJanuary
dNúmero do dia sem zero à esquerda1
ddNúmero do dia com zero à esquerda01
dddDia da semana, curtoTue
ddddDia da semana, longoTuesday
yyAno, breve19
yyyyAno, longo2019
Hora(2:03:05 PM)
hHora sem zero à esquerda. 0-232
hhHora com zero à esquerda. 00-2302
mMinutos sem zero à esquerda. 0-593
mmMinutos com zero à esquerda. 00-5903
sSegundos sem zero à esquerda. 0-595
ssSegundos com zero à esquerda. 00-5905
[h]Tempo decorrido em horas14 (pode exceder 24)
[mm]Tempo decorrido em minutos843
[ss]Tempo decorrido em segundos50585
AM/PMPeríodos do dia. Se omitido, utiliza-se o formato de 24 horas.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.

Símbolos adicionais

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. Aparecem "tal como estão" no padrão.

CaracteresDescriçãoExemplo
+ e -Sinais mais e menos### + ### = ###,###
( )Parênteses esquerdo e direito(-###.##)
:Dois pontoshh:mm:ss
^Caret#\^#
'Apóstrofe'######
{ }Parêntesis enrolados{###,###,###}
< >Less-than and greater than signs## >##
=Sinal igual#+#=##
/Forward slash. Quando utilizado com números, apresenta-os como fracções.mm/dd/yyyy
!Ponto de exclamação$###.00!
&Ampersand"Hello" & "Welcome"
~Tilde~##
Space character
Euro€###.00
£Libra esterlina£###.00
¥Iene japonês¥###.00
$Sinal de dólar$###.00
¢Sinal de cêntimo.00¢

Atributos de impressão

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:

Colunas / Linhas

Column and row attributes are used to specify the beginning, end, and repetition of columns and rows.

PropriedadeTipoDescrição
columnEndinteiro longoA última coluna a imprimir num intervalo de células. Valor padrão = -1 (todas as colunas)
columnStartinteiro longoA primeira coluna a imprimir num intervalo de células. Valor padrão = -1 (todas as colunas)
repeatColumnEndinteiro longoA última coluna de um intervalo de colunas a imprimir à esquerda de cada página. Valor padrão = -1 (todas as colunas)
repeatColumnStartinteiro longoA primeira coluna de um intervalo de colunas a imprimir à esquerda de cada página. Valor padrão = -1 (todas as colunas)
repeatRowEndinteiro longoA última linha de um intervalo de linhas a imprimir no topo de cada página. Valor padrão = -1 (todas as linhas)
repeatRowStartinteiro longoA primeira linha de um intervalo de linhas a imprimir no topo de cada página. Valor padrão = -1 (todas as linhas)
rowEndinteiro longoA última linha a imprimir num intervalo de células. Valor padrão = -1 (todas as linhas)
rowStartinteiro longoA primeira linha a imprimir num intervalo de células. Valor padrão = -1 (todas as linhas)

Cabeçalhos / Rodapés

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

PropriedadeTipoDescrição
footerCentertextO texto e o formato do rodapé central nas páginas impressas.
footerCenterImagepicture | text*A imagem para a secção central do rodapé.
footerLefttextO texto e o formato do rodapé esquerdo nas páginas impressas.
footerLeftImagepicture | text*A imagem para a secção esquerda do rodapé.
footerRighttextO texto e o formato do rodapé direito nas páginas impressas.
footerRightImagepicture | text*A imagem para a secção direita do rodapé.
headerCentertextO texto e o formato do cabeçalho central nas páginas impressas.
headerCenterImagepicture | text*A imagem para a secção central do cabeçalho.
headerLefttextO texto e o formato do cabeçalho esquerdo nas páginas impressas.
headerLeftImagepicture | text*A imagem para a secção esquerda do cabeçalho.
headerRighttextO texto e o formato do cabeçalho direito nas páginas impressas.
headerRightImagepicture | text*A imagem para a secção direita do cabeçalho.

* 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. No Windows, a extensão do ficheiro deve ser indicada. 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.

Caracteres especiais

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.

CaracteresDescriçãoExemploResultados
&Carácter de escape(ver exemplos abaixo)
PPágina actualprintInfo.headerLeft:="This is page &P."Esta é a página 5.
NContagem de páginasprintInfo.headerLeft:="Existem &N páginas."Existem 10 páginas.
DData atual (formato yyyy/mm/dd)printInfo.headerLeft:="É &D."Estamos em 2015/6/19.
THora actualprintInfo.headerLeft:="É &T."São 16:30:36.
GImagemprintInfo.headerLeftImage:=smiley
printInfo.headerLeft:="&G"
SRiscadoprintInfo.headerLeft:="&SThis is text."~Isto é texto.~
USublinhadoprintInfo.headerLeft:="&UThis is text."Isto é texto. (Sublinhado)
BNegritoprintInfo.headerLeft:="&BThis is text."Isto é texto.
IItálicoprintInfo.headerLeft:="&IThis is text."Isto é texto.
"Prefixo do tipo de letraprintInfo.headerLeft:="&\"Lucida Console\"&14This is text."
KPrefixo da cor do textoprintInfo.headerLeft:="&KFF0000Isto é texto."Este é o texto (a vermelho).
FWorkbook nameprintInfo.headerLeft:="&F"2019 Monthly Revenue Forecasts
ANome da folha de cálculoprintInfo.headerLeft:="&A"June 2019 revenue forecast

Margens

Margin attributes are used to specify the 4D View Pro area margins for printing. Expresso em centenas de polegada.

PropriedadeTipoDescrição
marginobjectAs margens de impressão
topinteiro longoMargem superior, em centésimos de polegada. Valor padrão = 75
bottominteiro longoMargem inferior, em centésimos de polegada. Valor padrão = 75
leftinteiro longoMargem esquerda, em centésimos de polegada. Valor padrão = 70
direitainteiro longoMargem direita, em centésimos de polegada. Valor padrão = 70
headerinteiro longoDeslocação do cabeçalho, em centésimos de polegada. Valor padrão = 30
footerinteiro longoFooter offset, in hundredths of an inch. Valor padrão = 30

Orientação

Os atributos de orientação são utilizados para especificar a direcção da disposição da página impressa.

Este atributo define apenas as informações de renderização.

PropriedadeTipoDescrição
orientationinteiro longoOrientação da página. Valores disponíveis: vk print page orientation landscape, vk print page orientation portrait (padrão)

Página

Os atributos de página são utilizados para especificar as definições gerais de impressão de documentos.

PropriedadeTipoDescrição
blackAndWhitebooleanImpressão apenas em preto e branco.

Valor padrão = false

Nota: os PDFs não são afetados por este atributo. As cores nos PDFs mantêm-se.

centeringinteiro longoA forma como o conteúdo é centrado na página impressa. Valores disponíveis: vk print centering both, vk print centering horizontal, vk print centering none (padrão), vk print centering vertical
firstPageNumberinteiro longoThe page number to print on the first page. Default value = 1
pageOrderinteiro longoThe order pages are printed. Valores disponíveis: vk print page order auto (default), vk print page order down then over, vk print page order over then down.
pageRangetextO intervalo de páginas para impressão
qualityFactorinteiro longoThe quality factor for printing (1 - 8). The higher the quality factor, the better the printing quality, however printing performance may be affected.

Valor padrão = 2

useMaxbooleanApenas as colunas e linhas com dados são impressas.

Valor padrão = true

zoomFactorrealThe amount to enlarge or reduce the printed page.

Valor padrão = 1

Tamanho de papel

Paper size attributes are used to specify the dimensions or model of paper to use for printing. Existem duas formas de definir o tamanho do papel:

  • Tamanho personalizado - atributos de altura e largura
  • Tamanho normal - atributo kind
PropriedadeTipoDescrição
paperSizeobjectPaper dimensions (height, width) or specific format (kind) for printing.
heightinteiro longoAltura do papel, em centésimos de polegada.
widthinteiro longoLargura do papel, em centésimos de polegada.
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:

Escala

Scale attributes are used to specify printing optimization and adjustments.

PropriedadeTipoDescrição
bestFitColumnsbooleanColumn width is adjusted to fit the largest text width for printing. Valor padrão = "false"
bestFitRowsbooleanRow height is adjusted to fit the tallest text height for printing. Valor padrão = "false"
fitPagesTallinteiro longoThe number of vertical pages (portrait orientation) to check when optimizing printing. Valor padrão = -1
fitPagesWideinteiro longoThe number of horizontal pages (landscape orientation) to check when optimizing printing. Valor padrão = -1

Mostrar / Esconder

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

PropriedadeTipoDescrição
showBorderbooleanPrints the outline border. Default value = "true"
showColumnHeaderinteiro longoParâmetros de impressão do cabeçalho da coluna. Valores disponíveis: vk print visibility hide, vk print visibility inherit (padrão), vk print visibility show, vk print visibility show once
showGridLinebooleanPrints the gridlines. Valor padrão = "false"
showRowHeaderinteiro longoParâmetros de impressão de cabeçalhos de linha. Valores disponíveis: vk print visibility hide, vk print visibility inherit (padrão), vk print visibility show, vk print visibility show once

Marca de água

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

PropriedadeTipoDescrição
marca de águacollectionColeção de parâmetros de marcas de água. Default value: undefined
[ ].heightinteiro longoA altura do texto/imagem da marca de água.
[ ].imageSrcpicture | text*O texto/imagem da marca de água.
[ ].pagetextA(s) página(s) onde a marca de água é impressa. For all pages: "all". Para páginas específicas: números de página ou intervalos de páginas separados por vírgulas. Ex.: "1,3,5-12"
[ ].widthinteiro longoA largura do texto/imagem da marca de água.
[ ].xinteiro longoThe horizontal coordinate of the top left point of the watermark text / image.
[ ].yinteiro longoThe 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. No Windows, a extensão do ficheiro deve ser indicada. 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.

Objectos de estilo & Folhas de estilo

Style objects contain the style settings. Podem ser utilizados numa folha de estilo ou por conta própria. 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.

Propriedades do objecto de estilo

Exemplo:

 $style:=New object
$style.hAlign:=vk horizontal align left
$style.font:="12pt papyrus"
$style.backColor:="#E6E6FA" //cor púrpura claro

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

Fundo & Primeiro plano

PropriedadeTipoDescriçãoValores possíveis
backColortextDefine a cor do fundo.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)
backgroundImagepicture, textEspecifica uma imagem de fundo.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. Isto pode afetar o tamanho de um documento se a imagem for grande. Nota para o Windows: a extensão do ficheiro deve ser incluída.
backgroundImageLayoutinteiro longoDefine o esquema para a imagem de fundo.vk image layout center, vk image layout none, vk image layout stretch, vk image layout zoom
foreColortextDefine a cor do primeiro plano.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)

Borders

PropriedadeTipoDescriçãoValores possíveis
borderBottom, borderLeft, borderRight, borderTop, diagonalDown, diagonalUpobjectDefine a linha de fronteira correspondente
colortextDefine a cor da margem. Predefinição = black.CSS color "#rrggbb" syntax (preferred syntax), CSS color "rgb(r,g,b)" syntax (alternate syntax), CSS color name (alternate syntax)
styleinteiro longoDefines the style of the border. Predefinição = vazio. Não pode ser null ou indefinido.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

Fontes e texto

PropriedadeTipoDescriçãoValores possíveis
fonttextSpecifies the font characteristics in CSS font shorthand ("font-style font-variant font-weight font-size/line-height font-family"). Exemplo: "14pt Century Gothic". Os valores font-size e font-family são obrigatórios. 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
formattertextPattern for value/time property.Formatos número/texto/data/hora, caracteres especiais. Ver Formato da célula.
isVerticalTextbooleanSpecifies text direction.True = texto vertical, False = texto horizontal.
labelOptionsobjectDefine as opções de etiqueta de célula (opções de marca de água).
alignmentinteiro longoEspecifica a posição da etiqueta da célula. Propriedade opcional.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
visibilidadeinteiro longoEspecifica a visibilidade da etiqueta da célula. Propriedade opcional.vk label visibility auto, vk label visibility hidden, vk label visibility visible
foreColortextDefine a cor do primeiro plano. Propriedade opcional.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"). Os valores font-size e font-family são obrigatórios.
textDecorationinteiro longoEspecifica a decoração adicionada ao texto.vk text decoration double underline, vk text decoration line through, vk text decoration none, vk text decoration overline, vk text decoration underline
textIndentinteiro longoDefine a unidade de indentação do texto. 1 = 8 píxeles
textOrientationinteiro longoDefine o ângulo de rotação do texto numa célula. Number between -90 and 90
marca de águatextDefine o conteúdo da marca de água (etiqueta da célula)
wordWrapbooleanEspecifica se o texto deve ser envolvido.True = texto embrulhado, False = texto não embrulhado

Layout

PropriedadeTipoDescriçãoValores possíveis
cellPaddingtextDefines the cell padding
hAligninteiro longoDefine o alinhamento horizontal do conteúdo da célula.vk horizontal align center, vk horizontal align general, vk horizontal align left, vk horizontal align right
lockedbooleanEspecifica o estado de proteção da célula. Note, this is only available if sheet protection is enabled.True = bloqueado, False = desbloqueado.
shrinkToFitbooleanEspecifica se o conteúdo da célula deve ser reduzido.True = conteúdo reduzido, False = sem redução.
tabStopbooleanEspecifica se o foco da célula pode ser definido utilizando a tecla Tab.True = a tecla Tab define o foco, False = a tecla Tab não define o foco.
vAligninteiro longoEspecifica o alinhamento vertical do conteúdo da célula.vk vertical align bottom, vk vertical align center, vk vertical align top

Informações sobre o estilo

PropriedadeTipoDescrição
nametextDefine o nome do estilo
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. Apenas disponível quando se utiliza uma folha de estilos.

Objeto 4D View Pro

The 4D View Pro object stores the whole spreadsheet contents. É tratado automaticamente pelo 4D View Pro. You can set or get this object using the VP IMPORT FROM OBJECT or VP Export to object methods.

Contém as seguintes propriedades:

PropriedadeTipo de valorDescrição
versionLongintVersão do componente interno
dateCreationTimestampData de criação
dateModifiedTimestampData da última modificação
metaObjectConteúdos gratuitos, reservados ao programador 4D
spreadJSObjectReservado para o componente 4D View Pro

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. Gere a informação utilizada pelo objeto 4D View Pro.

The 4D View Pro form object variable is for information purposes only (i.e., debugging). Não deve, em caso algum, ser modificado.

Contém as seguintes propriedades:

PropriedadeTipo de valorDescrição
ViewPro.areaTextNome da área 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) upon exiting the method, or if a command returns a value or the VP FLUSH COMMANDS is called. This mechanism increases performance by reducing the number of requests sent.
ViewPro.eventsObjectEvent list.
ViewPro.formulaBarParâmetrosIndica se a barra de fórmulas é ou não apresentada. Disponível apenas para a interface "barra de ferramentas".
ViewPro.initedParâmetrosIndicates 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".