WebControlCSS.Operator Subtract

From Xojo Documentation

Method

WebControlCSS.Operator_Subtract(OtherStyle as WebControlCSS) As WebControlCSS

Supported for all project types and targets.

Subtracts the second WebControlCSS properties from the first, removing any properties that exist in both.

Notes

Using this method is as simple as subtracting a WebControlCSS objects from another.

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