The
CopyC#
Dimension
class encapsulates the width and height of a component (in int precision) in a single object.

Namespace: System.Drawing
Assembly: ITextSharp (in ITextSharp.dll) Version: 4.1.6.0

Syntax

C#
public class Dimension : Dimension2D
Visual Basic
Public Class Dimension _
	Inherits Dimension2D
Visual C++
public ref class Dimension : public Dimension2D

Remarks

The class is associated with certain properties of components. Several methods defined by the
CopyC#
Component
class and the
CopyC#
LayoutManager
interface return a
CopyC#
Dimension
object.

Normally the values of

CopyC#
width
and
CopyC#
height
are non-negative ints. The constructors that allow you to create a dimension do not prevent you from setting a negative value for these properties. If the value of
CopyC#
width
or
CopyC#
height
is negative, the behavior of some methods defined by other objects is undefined.

Inheritance Hierarchy

System..::..Object
  System.Drawing..::..Dimension2D
    System.Drawing..::..Dimension

See Also