Saltar al contenido principal
Versión: 20 R5

VP Get stylesheet

VP Get stylesheet ( vpAreaName : Text ; styleName : Text { ; sheet : Integer } ) : Object

ParámetrosTipoDescripción
vpAreaNameText->Nombre de objeto formulario área 4D View Pro
styleNameText->Nombre del estilo
sheetInteger->Índice de la hoja (hoja actual si se omite)
ResultObject<-Objeto hoja de estilo

Descripción

El comando VP Get stylesheet devuelve el objeto de hoja de estilo styleName que contiene los valores de las propiedades que se han definido.

En vpAreaName, pase el nombre del área 4D View Pro. Si pasa un nombre que no existe, se devuelve un error.

En styleName, pase el nombre de la hoja de estilo a obtener.

Puede definir dónde obtener la hoja de estilo en el parámetro opcional sheet utilizando el índice de la hoja (la numeración comienza en 0) o con las siguientes constantes:

  • vk current sheet
  • vk workbook

Ejemplo

El código siguiente:

$style:=VP Get stylesheet("ViewProArea";"GreenDashDotStyle")

... devolverá el objeto estilo GreenDashDotStyle de la hoja actual:

{
backColor:green,
borderBottom:{color:green,style:10},
borderLeft:{color:green,style:10},
borderRight:{color:green,style:10},
borderTop:{color:green,style:10}
}

Ver también

4D View Pro Style Objects and Style Sheets
VP ADD STYLESHEET
VP Get stylesheets
VP REMOVE STYLESHEET