CssOpacity Structure

Represents the opacity of a color or CSS element based on a provided value.
This structure exists so both integers ranging from 0 to 255 and doubles ranging from 0 to 1 can be used interchangeably.

Definition

Namespace: BlazorBootstrap
Assembly: BlazorBootstrap (in BlazorBootstrap.dll) Version: 0.7+45c8d9adb5970d727cceec44a5ed61aea0016e50
public readonly struct CssOpacity : IEquatable<CssOpacity>
Inheritance
Object    ValueType    CssOpacity
Implements
IEquatableCssOpacity

Constructors

CssOpacity(Double) Default constructor for double input.
CssOpacity(Int32) Default constructor for integer input.

Methods

Equals(CssOpacity)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)
ToStringReturns the fully qualified type name of this instance.
(Overrides ValueTypeToString)

Operators

Equality(CssOpacity, CssOpacity) Checks if the two CssOpacity are equal.
(CssOpacity to Double) Implicit conversion from CssOpacity to double
(CssOpacity to Int32) Implicit conversion from CssOpacity to Int32
(CssOpacity to String) Implicit conversion from CssOpacity to String
(Double to CssOpacity) Implicit conversion from double to CssOpacity
(Int32 to CssOpacity) Implicit conversion from int to CssOpacity
Inequality(CssOpacity, CssOpacity) Checks if the two CssOpacity are not equal.

See Also