C# Class System.Drawing.Point

Mostra file Open project: dotnet/corefx Class Usage Examples

Public Properties

Property Type Description
Empty Point
Empty System.Drawing.Point

Public Methods

Method Description
Add ( Point pt, Size sz ) : Point

Translates a by a given .

Add ( System pt, System sz ) : System.Drawing.Point
Ceiling ( PointF value ) : Point

Converts a PointF to a Point by performing a ceiling operation on all the coordinates.

Ceiling ( System value ) : System.Drawing.Point
Equals ( object obj ) : bool

Specifies whether this contains the same coordinates as the specified .

GetHashCode ( ) : int

Returns a hash code.

Offset ( Point p ) : void

Translates this by the specified amount.

Offset ( System p ) : void
Offset ( int dx, int dy ) : void

Translates this by the specified amount.

Point ( System sz )
Point ( int dw )
Point ( int x, int y )
Point ( Size sz ) : System.Numerics.Hashing

Initializes a new instance of the class from a .

Point ( int dw ) : System.Numerics.Hashing

Initializes a new instance of the Point class using coordinates specified by an integer value.

Point ( int x, int y ) : System.Numerics.Hashing

Initializes a new instance of the class with the specified coordinates.

Round ( PointF value ) : Point

Converts a PointF to a Point by performing a round operation on all the coordinates.

Round ( System value ) : System.Drawing.Point
Subtract ( Point pt, Size sz ) : Point

Translates a by the negative of a given .

Subtract ( System pt, System sz ) : System.Drawing.Point
ToString ( ) : string

Converts this to a human readable string.

Truncate ( PointF value ) : Point

Converts a PointF to a Point by performing a truncate operation on all the coordinates.

Truncate ( System value ) : System.Drawing.Point
operator ( ) : Point

Translates a by a given .

operator ( ) : System.Drawing.Point
operator ( ) : bool

Compares two objects. The result specifies whether the values of the and properties of the two objects are equal.

Private Methods

Method Description
HighInt16 ( int n ) : short
LowInt16 ( int n ) : short

Method Details

Add() public static method

Translates a by a given .

public static Add ( Point pt, Size sz ) : Point
pt Point
sz Size
return Point

Add() public static method

public static Add ( System pt, System sz ) : System.Drawing.Point
pt System
sz System
return System.Drawing.Point

Ceiling() public static method

Converts a PointF to a Point by performing a ceiling operation on all the coordinates.
public static Ceiling ( PointF value ) : Point
value PointF
return Point

Ceiling() public static method

public static Ceiling ( System value ) : System.Drawing.Point
value System
return System.Drawing.Point

Equals() public method

Specifies whether this contains the same coordinates as the specified .

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

Returns a hash code.

public GetHashCode ( ) : int
return int

Offset() public method

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

Offset() public method

public Offset ( System p ) : void
p System
return void

Offset() public method

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

Point() public method

public Point ( System sz )
sz System

Point() public method

public Point ( int dw )
dw int

Point() public method

public Point ( int x, int y )
x int
y int

Point() public method

Initializes a new instance of the class from a .

public Point ( Size sz ) : System.Numerics.Hashing
sz Size
return System.Numerics.Hashing

Point() public method

Initializes a new instance of the Point class using coordinates specified by an integer value.
public Point ( int dw ) : System.Numerics.Hashing
dw int
return System.Numerics.Hashing

Point() public method

Initializes a new instance of the class with the specified coordinates.
public Point ( int x, int y ) : System.Numerics.Hashing
x int
y int
return System.Numerics.Hashing

Round() public static method

Converts a PointF to a Point by performing a round operation on all the coordinates.
public static Round ( PointF value ) : Point
value PointF
return Point

Round() public static method

public static Round ( System value ) : System.Drawing.Point
value System
return System.Drawing.Point

Subtract() public static method

Translates a by the negative of a given .

public static Subtract ( Point pt, Size sz ) : Point
pt Point
sz Size
return Point

Subtract() public static method

public static Subtract ( System pt, System sz ) : System.Drawing.Point
pt System
sz System
return System.Drawing.Point

ToString() public method

Converts this to a human readable string.

public ToString ( ) : string
return string

Truncate() public static method

Converts a PointF to a Point by performing a truncate operation on all the coordinates.
public static Truncate ( PointF value ) : Point
value PointF
return Point

Truncate() public static method

public static Truncate ( System value ) : System.Drawing.Point
value System
return System.Drawing.Point

operator() public static method

Translates a by a given .

public static operator ( ) : Point
return Point

operator() public static method

public static operator ( ) : System.Drawing.Point
return System.Drawing.Point

operator() public static method

Compares two objects. The result specifies whether the values of the and properties of the two objects are equal.

public static operator ( ) : bool
return bool

Property Details

Empty public_oe static_oe property

Creates a new instance of the class with member data left uninitialized.
public static Point,System.Drawing Empty
return Point

Empty public_oe static_oe property

public static System.Drawing.Point Empty
return System.Drawing.Point