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

VP Get stylesheets

VP Get stylesheets ( vpAreaName : Text { ; sheet : Integer } ) : Collection

ParâmetroTipoDescrição
vpAreaNameText->Nome de objeto formulário área 4D View Pro
sheetInteger->Âmbito alvo (padrão = folha atual)
ResultadosCollection<-Coleção de objectos de folhas de estilo

Descrição

The VP Get stylesheets command returns the collection of defined style sheet objects from the designated sheet.

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

You can define where to get the style sheets in the optional sheet parameter using the sheet index (counting begins at 0) or with the following constants:

  • vk current sheet
  • vk workbook

Exemplo

O código abaixo retorna a coleção de todos os objetos de estilo na folha atual:

$styles:=VP Get stylesheets("ViewProArea")

Nesse caso, a planilha atual usa dois objetos estilo:

[
{
backColor:green,
borderLeft:{color:green,style:10},
borderTop:{color:green,style:10},
borderRight:{color:green,style:10},
borderBottom:{color:green,style:10},
name:GreenDashDotStyle
},
{
backColor:red,
textIndent:10,
name:RedIndent
}
]

Veja também

VP ADD STYLESHEET
VP Get stylesheet
VP REMOVE STYLESHEET