Saltar para o conteúdo principal
Versão: Próximo

VP SET WORKBOOK OPTIONS

VP SET WORKBOOK OPTIONS ( vpAreaName : Text ; optionObj : Object)

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
optionObjObject->Objeto que contém as opções do livro a definir

Descrição

VP SET WORKBOOK OPTIONS sets the workbook options in vpAreaName.

Em vpAreaName, passe o nome da área 4D View Pro.

Em optionObj, passe as opções da pasta de trabalho a serem aplicadas a vpAreaName.

If optionObj is empty, the command does nothing.

As opções modificadas do livro são guardadas com o documento.

A tabela seguinte lista as opções de libro disponíveis:

PropriedadeTipoDescrição
allowUserDragMergebooleanThe drag merge operation is allowed (select cells and drag the selection to merge cells)
allowAutoCreateHyperlinkbooleanPermite a criação automática de hiperlinks na planilha.
allowContextMenubooleanO menu de contexto incorporado pode ser aberto.
allowCopyPasteExcelStylebooleanStyles from a spreadsheet can be copied and pasted to Excel, and vice-versa.
allowDynamicArraybooleanPermite arrays dinâmicos em folhas de trabalho
allowExtendPasteRangebooleanEstende o intervalo colado se o intervalo colado não for suficiente para os dados colados
allowSheetReorderbooleanÉ permitida a reordenação de folhas
allowUndobooleanÉ permitido desfazer as edições.
allowUserDeselectbooleanÉ permitido desmarcar células específicas de uma seleção.
allowUserDragDropbooleanÉ permitido arrastar e largar dados de intervalo
allowUserDragFillbooleanÉ permitido o preenchimento por arrastamento
allowUserEditFormulabooleanAs fórmulas podem ser introduzidas nas células
allowUserResizebooleanAs colunas e as linhas podem ser redimensionadas
allowUserZoombooleanÉ permitido fazer zoom (ctrl + roda do rato)
autoFitTypenumberO conteúdo é formatado para caber em células, ou células e cabeçalhos. Available values:
ConstantValueDescription
vk auto fit type cell 0 The content autofits cells
vk auto fit type cell with header 1 The content autofits cells and headers
backColorstringA color string used to represent the background color of the area, such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5". A cor de fundo inicial fica oculta quando uma backgroundImage é definida.
backgroundImagestring / picture / fileImagem de fundo para a área.
backgroundImageLayoutnumberComo é apresentada a imagem de fundo. Available values:
ConstantValueDescription
vk image layout center 1 In the center of the area.
vk image layout none 3 In the upper left corner of the area with its original size.
vk image layout stretch 0 Fills the area.
vk image layout zoom 2 Displayed with its original aspect ratio.
calcOnDemandbooleanAs fórmulas só são calculadas quando são solicitadas.
columnResizeModenumberModo de redimensionamento de colunas. Available values:
ConstantValueDescription
vk resize mode normal 0 Use normal resize mode (i.e remaining columns are affected)
vk resize mode split 1 Use split mode (i.e remaining columns are not affected)
copyPasteHeaderOptionsnumberCabeçalhos a incluir quando os dados são copiados ou colados. Available values:
ConstantValueDescription
vk copy paste header options all headers3 Includes selected headers when data is copied; overwrites selected headers when data is pasted.
vk copy paste header options column headers 2 Includes selected column headers when data is copied; overwrites selected column headers when data is pasted.
vk copy paste header options no headers0 Column and row headers are not included when data is copied; does not overwrite selected column or row headers when data is pasted.
vk copy paste header options row headers1 Includes selected row headers when data is copied; overwrites selected row headers when data is pasted.
customListcollectionThe list for users to customize drag fill, prioritize matching this list in each fill. Cada item da coleção é um conjunto de cadeias de caracteres. See on SpreadJS docs.
cutCopyIndicatorBorderColorstringBorder color for the indicator displayed when the user cuts or copies the selection.
cutCopyIndicatorVisiblebooleanApresenta um indicador quando se copia ou corta o item selecionado.
defaultDragFillTypenumberO tipo de preenchimento de arrastamento padrão. Available values :
ConstantValueDescription
vk auto fill type auto 5 Automatically fills cells.
vk auto fill type clear values 4 Clears cell values.
vk auto fill type copycells 0 Fills cells with all data objects, including values, formatting, and formulas.
vk auto fill type fill formatting only 2 Fills cells only with formatting.
vk auto fill type fill series 1 Fills cells with series.
vk auto fill type fill without formatting 3 Fills cells with values and not formatting.
enableAccessibilitybooleanO suporte de acessibilidade está ativado na folha de cálculo.
enableFormulaTextboxbooleanA caixa de texto da fórmula está activada.
grayAreaBackColorstringA color string used to represent the background color of the gray area , such as "red", "#FFFF00", "rgb(255,0,0)", "Accent 5", and so on.
highlightInvalidDatabooleanOs dados inválidos são realçados.
iterativeCalculationbooleanAtiva o cálculo iterativo. See on SpreadJS docs.
iterativeCalculationMaximumChangenumericQuantidade máxima de variação entre dois valores de cálculo.
iterativeCalculationMaximumIterationsnumericNúmero de vezes que a fórmula deve ser recalculada.
newTabVisiblebooleanApresentar um separador especial para permitir que os usuários insiram novas folhas.
numbersFitModenumberMuda o modo de exibição quando a largura de dados/data é maior que a largura da coluna. Available values:
ConstantValueDescription
vk numbers fit mode mask0 Replace data content with "###" and shows tip
vk numbers fit mode overflow 1 Display data content as a string. If next cell is empty, overflow the content.
pasteSkipInvisibleRangebooleanPaste or skip pasting data in invisible ranges:
  • False (default): paste data
  • True: Skip pasting in invisible ranges
See SpreadJS docs for more information on invisible ranges.
referenceStylenumberEstilo para referências de células e intervalos em fórmulas de células. Available values:
ConstantValueDescription
vk reference style A1 0 Use A1 style.
vk reference style R1C1 1 Use R1C1 style
resizeZeroIndicatornumberPolítica de desenho quando a linha ou coluna é redimensionada para zero. Available values:
ConstantValueDescription
vk resize zero indicator default 0 Uses the current drawing policy when the row or column is resized to zero.
vk resize zero indicator enhanced 1 Draws two short lines when the row or column is resized to zero.
rowResizeModenumberA forma como as linhas são redimensionadas. Os valores disponíveis são os mesmos que columnResizeMode
scrollbarAppearancenumberAspeto da barra de deslocação. Available values:
ConstantValueDescription
vk scrollbar appearance mobile1 Mobile scrollbar appearance.
vk scrollbar appearance skin (default)0 Excel-like classic scrollbar appearance.
scrollbarMaxAlignbooleanA barra de rolagem se alinha com a última linha e coluna da folha ativa.
scrollbarShowMaxbooleanThe displayed scroll bars are based on the entire number of columns and rows in the sheet.
scrollByPixelbooleanAtivar a deslocação de precisão por pixel.
scrollIgnoreHiddenbooleanA barra de rolagem ignora as linhas ou colunas ocultas.
scrollPixelintegerDecides scrolling by that number of pixels at a time when scrollByPixel is true. The final scrolling pixels are the result of scrolling delta * scrollPixel. For example: scrolling delta is 3, scrollPixel is 5, the final scrolling pixels are 15.
showDragDropTipbooleanExibir a dica de arrastar e soltar.
showDragFillSmartTagbooleanDisplay the drag fill dialog.
showDragFillTipbooleanExibir a dica de preenchimento de arrasto.
showHorizontalScrollbarbooleanMostrar a barra de deslocação horizontal.
showResizeTipnumberPosition of the tab strip. Available values:
ConstantValueDescription
vk show resize tip both 3 Horizontal and vertical resize tips are displayed.
vk show resize tip column 1 Only the horizontal resize tip is displayed.
vk show resize tip none 0 No resize tip is displayed.
vk show resize tip row 2 Only the vertical resize tip is displayed.
showScrollTipnumberPosition of the tab strip. Available values:
ConstantValueDescription
vk show scroll tip both 3 Horizontal and vertical scroll tips are displayed.
vk show scroll tip horizontal 1 Only the horizontal scroll tip is displayed.
vk show scroll tip none No scroll tip is displayed.
vk show scroll tip vertical 2 Only the vertical scroll tip is displayed.
showVerticalScrollbarbooleanMostrar a barra de deslocação vertical.
tabEditablebooleanThe sheet tab strip can be edited.
tabNavigationVisiblebooleanDisplay the sheet tab navigation.
tabStripPositionnumberPosition of the tab strip. Available values:
ConstantValueDescription
vk tab strip position bottom 0 Tab strip position is relative to the bottom of the workbook.
vk tab strip position left 2 Tab strip position is relative to the left of the workbook.
vk tab strip position right 3 Tab strip position is relative to the right of the workbook.
vk tab strip position top 1 Tab strip position is relative to the top of the workbook.
tabStripRationumberPercentage value (0.x) that specifies how much of the horizontal space will be allocated to the tab strip. The rest of the horizontal area (1 - 0.x) will allocated to the horizontal scrollbar.
tabStripVisiblebooleanDisplay the sheet tab strip.
tabStripWidthnumberWidth of the tab strip when position is left or right. O padrão e o mínimo são 80.
useTouchLayoutbooleanSe deve ser usado o layout de toque para apresentar o componente Spread.

Exemplo

Para definir a opção allowExtendpasteRange em "ViewProArea":

var $workbookOptions : Object

$workbookOptions:= New Object
$workbookOptions.allowExtendPasteRange:=True VP SET WORKBOOK OPTIONS("ViewProArea";$workbookOptions)

Veja também

VP Get workbook options