CSSPrimitiveValue.SetFloatValue

CSSPrimitiveValue.SetFloatValue method

A method to set the float value with a specified unit. If the property attached with this value can not accept the specified unit or the float value, the value will be unchanged and a DOMException will be raised.

public abstract void SetFloatValue(ushort unitType, float floatValue)
ParameterTypeDescription
unitTypeUInt16Type of the unit.
floatValueSingleThe float value.

See Also