Este é o site histórico da documentação 4D. As documentações estão sendo movidas progressivamente para developer.4d.com

Página Inicial

 
4D v19
VP SET CELL STYLE

VP SET CELL STYLE 


 

VP SET CELL STYLE ( objRange ; objEstilo ) 
Parâmetro Tipo   Descrição
objRange  Objeto in Objeto Range
objEstilo  Objeto in Estilo objeto

The VP SET CELL STYLE command applies the style(s) defined in the styleObj to the cells defined in the rangeObj.

In rangeObj, pass a range of cells where the style will be applied. If the rangeObj contains multiple cells, the style is applied to each cell.

The styleObj parameter lets you pass an object containing style settings. You can use an existing style sheet or create a new style. If the styleObj contains both an existing style sheet and additional style settings, the existing style sheet is applied first, followed by the additional settings. Giving the styleObj parameter a NULL value will remove any style settings from the rangeObj and revert to the default style settings (if any).

For more information about style objects and style sheets, see 4D View Pro Style Objects and Style Sheets.

Exemplo  

O código abaixo:

 $style:=New object
 $style.font:="8pt Arial"
 $style.backColor:="Azure"
 $style.foreColor:="red"
 $style.hAlign:=1
 $style.isVerticalText:=True
 $style.borderBottom:=New object("color";"#800080";"style";vk line style thick)
 
 VP SET CELL STYLE(VP Cell("ViewProArea";1;1);$style)

Resultará na tela abaixo:

Nota: as bordas aplicadas com VP SET CELL STYLE se aplicarão a cada célula de objRange, diferente do comando VP SET BORDER  que aplica as bordas ao objRange como um todo.



Ver também 

VP ADD STYLESHEET
VP Font to object
VP Get cell style
VP Object to font
VP SET BORDER
VP SET DEFAULT STYLE

 
PROPRIEDADES 

Produto: 4D
Tema: Linguagem 4D View Pro
Número 9761

 
CONTEÚDO DA PÁGINA 
 
HISTÓRIA 

Criado por: 4D v17 R6

 
ARTICLE USAGE

4D View Pro ( 4D v19)