System.Web.UI.WebControls.Unit.Parse Method

Converts the specified string to a System.Web.UI.WebControls.Unit.

Syntax

public static Unit Parse (string s)

Parameters

s
The string to convert.

Returns

A System.Web.UI.WebControls.Unit that represents the specified string.

Remarks

Use the Unit.Parse(string) static method to convert the string specified by the s parameter to a System.Web.UI.WebControls.Unit.

Note:

The unit of measurement when using this method is UnitType.Pixel.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0