Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Unit Constructor (Int32)

.NET Framework 1.1

Initializes a new instance of the Unit structure with the specified 32-bit signed integer.

[Visual Basic]
Public Sub New( _
   ByVal value As Integer _
)
[C#]
public Unit(
   int value
);
[C++]
public: Unit(
   int value
);
[JScript]
public function Unit(
   value : int
);

Parameters

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

Exceptions

Exception Type Condition
ArgumentOutOfRangeException The value parameter contains a value that is not between -32768 and 32767.

Remarks

Use this constructor to create and initialize a new instance of the Unit structure using the specified 32-bit signed integer.

The following table shows initial property values for an instance of Unit.

Property Initial Value
Type UnitType.Pixel
Value The value specified by the value parameter.
CAUTION   If the specified value is not between -32768 and 32767, an exception is thrown.

Requirements

Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family

See Also

Unit Structure | Unit Members | System.Web.UI.WebControls Namespace | Unit Constructor Overload List | Value | Type

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.