Este es el sitio web histórico de la documentación de 4D. La documentación se está trasladando progresivamente a developer.4d.com

Inicio

 
4D v20 R7
WP Get style sheet

WP Get style sheet 


 

WP Get style sheet ( wpDoc ; nomHojaEstilo ) -> Resultado 
Parámetro Tipo   Descripción
wpDoc  Objeto in Documento 4D Write Pro
nomHojaEstilo  Cadena in Nombre de hoja de estilo
Resultado  Objeto in Objeto de hoja de estilo

El comando WP Get style sheet devuelve el objeto de hoja de estilo designado por nomHojaEstilo.

En wpDoc, pase el documento 4D Write Pro que contiene la hoja de estilo.

El parámetro nomHojaEstilo le permite especificar el nombre de la hoja de estilo a devolver. Si el nombre de la hoja de estilo no existe en wpDoc, se devuelve un objeto nulo.

Ejemplo  

Para recuperar la hoja de estilo "Main title":

 C_OBJECT($styleSheet)
 
 $styleSheet:=WP Get style sheet(wpArea;"Main title")
 If($styleSheet=Null// verifica si la hoja de estilo existe//si no la crea
    $styleSheet:=WP New style sheet(wpArea;wk type paragraph;"Main title")
 End if



Ver también 

Acceder a contenidos de documentos por programación
WP DELETE STYLE SHEET
WP Get style sheets
WP IMPORT STYLE SHEETS
WP New style sheet

 
PROPIEDADES 

Producto: 4D
Tema: Lenguaje 4D Write Pro
Número 1656

This command can be run in preemptive processes

 
CONTENIDO DE LA PÁGINA 
 
HISTORIA 

Creado por: 4D v18

 
ARTICLE USAGE

Referencia 4D Write Pro ( 4D v20 R7)