C# Класс AGENT.Contrib.Drawing.Size

Stores an ordered pair of integers, which specify Height and Width
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
CenterWithin ( Rectangle container ) : Point
Clone ( ) : Object
Equals ( Size other ) : bool

Specifies whether this System.Drawing.Size structure has the same dimensions as the specified System.Drawing.Size structure.

Equals ( object obj ) : bool

Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.

GetHashCode ( ) : int
Size ( Point pt ) : System

Initializes a new instance of the System.Drawing.Size structure from the specified System.Drawing.Point structure.

Size ( int width, int height ) : System

Initializes a new instance of the System.Drawing.Size structure from the specified dimensions.

ToString ( ) : string

Описание методов

CenterWithin() публичный Метод

public CenterWithin ( Rectangle container ) : Point
container Rectangle
Результат Point

Clone() публичный Метод

public Clone ( ) : Object
Результат Object

Equals() публичный Метод

Specifies whether this System.Drawing.Size structure has the same dimensions as the specified System.Drawing.Size structure.
public Equals ( Size other ) : bool
other Size
Результат bool

Equals() публичный Метод

Tests to see whether the specified object is a Size structure with the same dimensions as this Size structure.
public Equals ( object obj ) : bool
obj object The Object to test
Результат bool

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

Size() публичный Метод

Initializes a new instance of the System.Drawing.Size structure from the specified System.Drawing.Point structure.
public Size ( Point pt ) : System
pt Point The System.Drawing.Point structure from which to initialize this Size structure.
Результат System

Size() публичный Метод

Initializes a new instance of the System.Drawing.Size structure from the specified dimensions.
public Size ( int width, int height ) : System
width int the width component of the new Size.
height int the height component of the new Size.
Результат System

ToString() публичный Метод

public ToString ( ) : string
Результат string