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

VP Get cell style

VP Get cell style ( rangeObj : Object ) : Object

ParâmetroTipoDescrição
rangeObjObject->Objeto intervalo
ResultadosObject<-Objecto estilo

Descrição

The VP Get cell style command returns a style object for the first cell in the rangeObj.

In rangeObj, pass a range containing the style to retrieve.

  • If rangeObj contains a cell range, the cell style is returned.
  • If rangeObj contains a range that is not a cell range, the style of the first cell in the range is returned.
  • If rangeObj contains several ranges, only the style of the first cell in the first range is returned.

Exemplo

Para obter os detalhes sobre o estilo na célula selecionada (B2):

Este código:

$cellStyle:=VP Get cell style(VP Get selection("myDoc"))

... devolverá este objecto:

{
"backColor":"Azure",
"borderBottom":
{
"color":#800080,
"style":5
}
"font":"8pt Arial",
"foreColor":"red",
"hAlign":1,
"isVerticalText":"true",
"vAlign":0
}

Veja também

VP GET DEFAULT STYLE
VP SET CELL STYLE