Table of Contents

Class Dimension2D

Namespace
System.Drawing
Assembly
iTextSharp.LGPLv2.Core.dll

The Dimension2D class is to encapsulate a width and a height dimension.

public abstract class Dimension2D : ICloneable
Inheritance
Dimension2D
Implements
Derived
Inherited Members

Remarks

This class is only the abstract baseclass for all objects that store a 2D dimension. The actual storage representation of the sizes is left to the subclass.

Constructors

Dimension2D()

protected Dimension2D()

Properties

Height

Returns the height of this Dimension in double precision.

public abstract double Height { get; }

Property Value

double

the height

Size

Sets the size of this Dimension2D object to match the specified size.

public Dimension2D Size { set; }

Property Value

Dimension2D

the size

Width

Returns the width of this Dimension in double precision.

public abstract double Width { get; }

Property Value

double

the width

Methods

Clone()

Creates a new object of the same class as this object.

public object Clone()

Returns

object

a clone of this instance

SetSize(double, double)

Sets the size of this Dimension object to the specified width and height.

public abstract void SetSize(double width, double height)

Parameters

width double

the new width for the Dimension object

height double

the new height for the Dimension object