4D v13

WR SET STYLESHEET TEXT PROP

Home

 
4D Write v13
WR SET STYLESHEET TEXT PROP

WR SET STYLESHEET TEXT PROP 


 

WR SET STYLESHEET TEXT PROP ( area ; stylesheetNumber ; property ; value ; apply ) 
Parameter Type   Description
area  Longint in 4D Write area
stylesheetNumber  Longint in Stylesheet number
property  Longint in Number of the property to read
value  Longint in Value for the property chosen
apply  Integer in 1 = apply the value to the property 0 = do not apply the value to the property

The WR SET STYLESHEET TEXT PROP command allows you to modify the text attributes of the style sheet whose number is passed in styleSheetNumber.

  • If you want all the text that currently uses this style sheet to be updated, call the WR UPDATE STYLESHEET command after modifying teh style sheet definition.
  • If you want to immediatly apply with this command the new text properties of the style sheet to both the style sheet and the current selection, use the WR APPLY STYLESHEET command.
  • The meaning given to the value parameter depends on the property value used.
    If the value for property is constant property wr bold or 0, values for value can either be 1 (True) or 0 (False).
    If the value for property is constant property wr font size or 8, values for value can be 9, 10, 12... but it must not exceed 255.

Note: property and value can be set using constants.

Both lists of text properties and text properties values are available in the "WR Text properties" and "WR Text properties values" constants themes. For more information about the "WR Text properties" constants, refer to the description of the WR SET TEXT PROPERTY command

  • Pass 1 in the apply parameter if you want to apply the changes to the property. If you do so, value will define the new value for the property.
  • Pass 0 in the apply parameter if you do not want to apply the changes to the property. If you do so, value will have no effect.

Example  

See example for command WR SET STYLESHEET INFO.

 
PROPERTIES 

Product: 4D
Theme: WR Style Sheet
Number: 89482

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D Write 6.5

 
SEE ALSO 

WR Get stylesheet text prop