Saltar para o conteúdo principal
Versão: 20 R5 BETA

VP SET DEFAULT STYLE

VP SET DEFAULT STYLE ( vpAreaName : Text ; styleObj : Object { ; sheet : Integer } )

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
styleObjObject->Objecto estilo
sheetInteger->Sheet index (default = current sheet)

Descrição

The VP SET DEFAULT STYLE command defines the style in the styleObj as the default style for a sheet.

Em vpAreaName, passe o nome da área 4D View Pro. Se passar um nome que não existe, é devolvido um erro.

The styleObj lets you pass an object containing style settings. Você pode usar uma folha de estilo existente ou criar um estilo. For more information, see the Style objects paragraph.

In the optional sheet parameter, you can designate a specific spreadsheet where the style will be defined. Se omitido, a planilha atual será utilizada por padrão. Você pode selecionar explicitamente a planilha atual com a seguinte constante:

  • vk current sheet

Exemplo

$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)

Veja também

VP ADD STYLESHEET
VP Font to object
VP Get default style
VP Object to font
VP SET BORDER
VP SET CELL STYLE