HiraokaHyperTools.iTextSharp-LGPL  0.2.5
System.Drawing.Dimension Class Reference

The More...

Inheritance diagram for System.Drawing.Dimension:
System.Drawing.Dimension2D

Public Member Functions

 Dimension ()
 Creates an instance of More...
 
 Dimension (Dimension d)
 Creates an instance of More...
 
 Dimension (int width, int height)
 Constructs a Dimension and initializes it to the specified width and specified height. More...
 
override void SetSize (double width, double height)
 Set the size of this Dimension object to the specified width and height in double precision. More...
 
void SetSize (int width, int height)
 Set the size of this More...
 
override bool Equals (Object obj)
 Checks whether two dimension objects have equal values. More...
 
override int GetHashCode ()
 Returns the hash code for this Dimension. More...
 
override string ToString ()
 Returns a string representation of the values of this More...
 
- Public Member Functions inherited from System.Drawing.Dimension2D
Object Clone ()
 Creates a new object of the same class as this object. More...
 

Public Attributes

int width
 The width dimension. Negative values can be used. More...
 
int height
 The height dimension. Negative values can be used. More...
 

Properties

override double Width [get]
 Returns the width of this dimension in double precision. More...
 
override double Height [get]
 Returns the height of this dimension in double precision. More...
 
new Dimension Size [get, set]
 Get/set the size of this More...
 
- Properties inherited from System.Drawing.Dimension2D
abstract double Width [get]
 Returns the width of this More...
 
abstract double Height [get]
 Returns the height of this More...
 
Dimension2D Size [set]
 Sets the size of this More...
 

Additional Inherited Members

- Protected Member Functions inherited from System.Drawing.Dimension2D
 Dimension2D ()
 This is an abstract class that cannot be instantiated directly. Type-specific implementation subclasses are available for instantiation and provide a number of formats for storing the information necessary to satisfy the various accessor methods below. More...
 

Detailed Description

The

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

The class is associated with certain properties of components. Several methods defined by the

Component

class and the

LayoutManager

interface return a

Dimension()
Creates an instance of
Definition: Dimension.cs:38

object.

Normally the values of

int width
The width dimension. Negative values can be used.
Definition: Dimension.cs:27

and

int height
The height dimension. Negative values can be used.
Definition: Dimension.cs:32

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

or

is negative, the behavior of some methods defined by other objects is undefined.

Constructor & Destructor Documentation

◆ Dimension() [1/3]

System.Drawing.Dimension.Dimension ( )

Creates an instance of

Dimension with a width of zero and a height of zero.

◆ Dimension() [2/3]

System.Drawing.Dimension.Dimension ( Dimension  d)

Creates an instance of

Dimension whose width and height are the same as for the specified dimension.

Parameters
dthe specified dimension for the and values.

◆ Dimension() [3/3]

System.Drawing.Dimension.Dimension ( int  width,
int  height 
)

Constructs a Dimension and initializes it to the specified width and specified height.

Parameters
widththe specified width dimension
heightthe specified height dimension

Member Function Documentation

◆ Equals()

override bool System.Drawing.Dimension.Equals ( Object  obj)

Checks whether two dimension objects have equal values.

Parameters
obj
Returns

◆ GetHashCode()

override int System.Drawing.Dimension.GetHashCode ( )

Returns the hash code for this Dimension.

Returns
a hash code

◆ SetSize() [1/2]

override void System.Drawing.Dimension.SetSize ( double  width,
double  height 
)
virtual

Set the size of this Dimension object to the specified width and height in double precision.

Parameters
widththe new width for the Dimension object
heightthe new height for the Dimension object

Implements System.Drawing.Dimension2D.

◆ SetSize() [2/2]

void System.Drawing.Dimension.SetSize ( int  width,
int  height 
)

Set the size of this

Dimension object to the specified width and height.

Parameters
widththe new width for this object.
heightthe new height for this object.

◆ ToString()

override string System.Drawing.Dimension.ToString ( )

Returns a string representation of the values of this

Dimension object's height and width fields.

This method is intended to be used only for debugging purposes, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be

null

.

Returns
a string representation of this object.

Member Data Documentation

◆ height

int System.Drawing.Dimension.height

The height dimension. Negative values can be used.

◆ width

int System.Drawing.Dimension.width

The width dimension. Negative values can be used.

Property Documentation

◆ Height

override double System.Drawing.Dimension.Height
get

Returns the height of this dimension in double precision.

the height

◆ Size

new Dimension System.Drawing.Dimension.Size
getset

Get/set the size of this

Dimension object.

the size

◆ Width

override double System.Drawing.Dimension.Width
get

Returns the width of this dimension in double precision.

the width


The documentation for this class was generated from the following file: