Unit.Implicit(Int32 to Unit) Operator

Definition

Implicitly creates a Unit of type Pixel from the specified 32-bit unsigned integer.

public static implicit operator System.Web.UI.WebControls.Unit (int n);

Parameters

n
Int32

A 32-bit signed integer that represents the length of the Unit.

Returns

A Unit of type Pixel that represents the 32-bit unsigned integer specified by the n parameter.

Remarks

The equivalent method for this operator is Unit.Pixel(Int32)

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also