WebControlCSS.Operator Add

From Xojo Documentation

Method

WebControlCSS.Operator_Add(OtherStyle as WebControlCSS) As WebControlCSS

Supported for all project types and targets.

Adds the second WebControlCSS properties to the first, overwriting any existing properties.

Notes

Using this method is as simple as adding two WebControlCSS objects together.

Example

Var s1 As New WebControlCSS
s1.Value("position") = "absolute"
s1.Value("left") = "25"

Var s2 As New WebControlCSS
s2.Value("left") = "50"
s2.Value("top") = "50"

Var s3 As WebControlCSS = s1 + s2

// position = absolute
// left = 50
// top = 50