wwWebControl::AddStyleTag

Adds or changes a style tag on the control's Style property. If you're chaning style properties in code it's recommended you use this method rather than directly changing the Style property manually.

This method checks for existing style tags and updates them or adds the style.

Example:

o.Style = "color:green;height:20px;width:400px;border-color:black;border-width:30px;"

o.AddStyleTag("font-weight","bold")
o.AddStyleTag("color","cornsilk")
o.AddStyleTag("width","240px")

Result:
color:cornsilk;height:20px;width:240px;border-color:black;border-width:30px;font-weight:bold;

o.AddStyleTag(lcStyle,lcValue)

Parameters

lcStyle
The style to set for example, background or border-width

lcValue
the value to set it to: green or 2


See also:

Class wwWebControl

© West Wind Technologies, 1996-2022 • Updated: 12/13/05
Comment or report problem with topic