Unit::Pixel Method (Int32)

 

Creates a Unit of type Pixel from the specified 32-bit signed integer.

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

public:
static Unit Pixel(
	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 length specified by the n parameter.

Use the Pixel static method to create a Unit of type Pixel that represents the length specified by the n parameter.

System_CAPS_noteNote

The Unit class can represent values only between -32768 and 32767.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: