VP SET DEFAULT STYLE
VP SET DEFAULT STYLE ( vpAreaName : Text ; styleObj : Object { ; sheet : Integer } )
Parâmetro | Tipo | Descrição | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nome de objeto formulário área 4D View Pro | |
styleObj | Object | -> | Objecto estilo | |
sheet | Integer | -> | Índice da folha (padrão = folha atual) |
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.
O styleObj permite que você passe um objeto contendo configurações de estilo. Você pode usar uma folha de estilo existente ou criar um estilo. Para obter mais informações, consulte o parágrafo Objetos de estilo.
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" //cor roxa clara
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