Unit Implicit Conversion (Int32 to Unit)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

equivalentCodeEntityM:System.Web.UI.WebControls.Unit.Pixel(System.Int32)

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
static operator Unit (
	int n
)

Parameters

n
Type: System::Int32

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

Return Value

Type: System.Web.UI.WebControls::Unit

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

.NET Framework
Available since 1.1
Return to top
Show: