Command WR SET STYLESHEET TEXT PROP

4D Write

WR SET STYLESHEET TEXT PROP

version 6.5


WR SET STYLESHEET TEXT PROP (area; styleSheetNumber; property; value; apply)

ParameterTypeDescription
areaLongint4D Write area
styleSheetNumberLongintStylesheet number
propertyLongintNumber of the property to read
valueNumberValue for the property chosen
applyInteger1 = apply the value to the property
0 = do not apply the value to the property

Description

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.

See Also

WR Get stylesheet text prop.