4D v16.3OBJECT SET STYLE SHEET |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
4D v16.3
OBJECT SET STYLE SHEET
OBJECT SET STYLE SHEET
The OBJECT SET STYLE SHEET command modifies, for the current process, the style sheet associated with the object(s) designated by the object and * parameters. A style sheet modifies the font, font size and (except for automatic style sheets) font style. Passing the optional * parameter indicates that the object parameter is an object name (string). If you do not pass this parameter, it indicates that the object parameter is a field or variable. In this case, you pass a field or variable reference instead of a string (field or variable object only). In the styleSheetName parameter, you pass the name of the style sheet to be applied to the object. You can also pass either:
If a style sheet was already associated with the object in Design mode, calling this command replaces it for the current process. During the session, if you use the ST SET ATTRIBUTES, ST SET TEXT or OBJECT SET FONT commands on the object in order to modify its font or font size, the reference to the style sheet is automatically deleted from the object -- even if you assign the same attributes as those of the style sheet. However, if you modify the style (bold, italic, etc.), for example using the ST SET ATTRIBUTES or OBJECT SET FONT STYLE commands, these new properties are added to the style sheet for the duration of the session.
See also
Font Styles
|
PROPERTIES
Product: 4D
HISTORY
Created: 4D v14 ARTICLE USAGE
4D Language Reference ( 4D v16) |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||