C# Class AGENT.Contrib.Drawing.Point

Represents an ordered pair of integer x- and y-coordinates that defines a point in a two-dimensional plane.
ファイルを表示 Open project: nothingmn/AGENT.Contrib

Public Methods

Method Description
Clone ( ) : Object
Equals ( Point other ) : bool

Specifies whether this System.Drawing.Point contains the same coordinates as the specified System.Drawing.Point

Equals ( object obj ) : bool

Specifies whether this System.Drawing.Point contains the same coordinates as the specified System.Object

GetHashCode ( ) : int
Offset ( Point p ) : void

Translates this System.Drawing.Point by the specified System.Drawing.Point

Offset ( int dx, int dy ) : void

Translates this Point by the specified amount

Point ( Size sz ) : System

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

Point ( int x, int y ) : System

Initializes a new instance of the System.Drawing.Point class with the specified coordinates.

ToString ( ) : string

Method Details

Clone() public method

public Clone ( ) : Object
return Object

Equals() public method

Specifies whether this System.Drawing.Point contains the same coordinates as the specified System.Drawing.Point
public Equals ( Point other ) : bool
other Point The other System.Drawing.Point to test.
return bool

Equals() public method

Specifies whether this System.Drawing.Point contains the same coordinates as the specified System.Object
public Equals ( object obj ) : bool
obj object The System.Object to test.
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

Offset() public method

Translates this System.Drawing.Point by the specified System.Drawing.Point
public Offset ( Point p ) : void
p Point
return void

Offset() public method

Translates this Point by the specified amount
public Offset ( int dx, int dy ) : void
dx int
dy int
return void

Point() public method

Initializes a new instance of the System.Drawing.Point class from a System.Drawing.Size.
public Point ( Size sz ) : System
sz Size A System.Drawing.Size that specifies the coordinates for the new System.Drawing.Point.
return System

Point() public method

Initializes a new instance of the System.Drawing.Point class with the specified coordinates.
public Point ( int x, int y ) : System
x int The horizontal position of the point.
y int The vertical position of the point.
return System

ToString() public method

public ToString ( ) : string
return string