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

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

Syntax

public static Unit Parse (string s, System.Globalization.CultureInfo culture)

Parameters

s
The string to convert.
culture
A System.Globalization.CultureInfo object that represents the culture.

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 s to a System.Web.UI.WebControls.Unit in the culture specified by culture.

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