VP Get stylesheet
VP Get stylesheet ( vpAreaName : Text ; styleName : Text { ; sheet : Integer } ) : Object
Parâmetro | Tipo | Descrição | ||
---|---|---|---|---|
vpAreaName | Text | -> | Nome de objeto formulário área 4D View Pro | |
styleName | Text | -> | Nome do estilo | |
sheet | Integer | -> | Índice da folha (folha atual se omitida) | |
Resultados | Object | <- | Objeto da folha de estilo |
Descrição
The VP Get stylesheet
command returns the styleName style sheet object containing the property values which have been defined.
Em vpAreaName, passe o nome da área 4D View Pro. Se passar um nome que não existe, é devolvido um erro.
Em styleName, passe o nome da folha de estilo a obter.
You can define where to get the style sheet 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 seguinte código:
$style:=VP Get stylesheet("ViewProArea";"GreenDashDotStyle")
... retorna o objeto estilo GreenDashDotStyle da folha atual:
{
backColor:green,
borderBottom:{color:green,style:10},
borderLeft:{color:green,style:10},
borderRight:{color:green,style:10},
borderTop:{color:green,style:10}
}
Veja também
4D View Pro Style Objects and Style Sheets
VP ADD STYLESHEET
VP Get stylesheets
VP REMOVE STYLESHEET