C# Класс System.Drawing.Point

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Empty Point
Empty System.Drawing.Point

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

Метод Описание
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.

Приватные методы

Метод Описание
HighInt16 ( int n ) : short
LowInt16 ( int n ) : short

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

Add() публичный статический Метод

Translates a by a given .

public static Add ( Point pt, Size sz ) : Point
pt Point
sz Size
Результат Point

Add() публичный статический Метод

public static Add ( System pt, System sz ) : System.Drawing.Point
pt System
sz System
Результат System.Drawing.Point

Ceiling() публичный статический Метод

Converts a PointF to a Point by performing a ceiling operation on all the coordinates.
public static Ceiling ( PointF value ) : Point
value PointF
Результат Point

Ceiling() публичный статический Метод

public static Ceiling ( System value ) : System.Drawing.Point
value System
Результат System.Drawing.Point

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

Specifies whether this contains the same coordinates as the specified .

public Equals ( object obj ) : bool
obj object
Результат bool

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

Returns a hash code.

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

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

Translates this by the specified amount.
public Offset ( Point p ) : void
p Point
Результат void

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

public Offset ( System p ) : void
p System
Результат void

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

Translates this by the specified amount.
public Offset ( int dx, int dy ) : void
dx int
dy int
Результат void

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

public Point ( System sz )
sz System

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

public Point ( int dw )
dw int

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

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

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

Initializes a new instance of the class from a .

public Point ( Size sz ) : System.Numerics.Hashing
sz Size
Результат System.Numerics.Hashing

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

Initializes a new instance of the Point class using coordinates specified by an integer value.
public Point ( int dw ) : System.Numerics.Hashing
dw int
Результат System.Numerics.Hashing

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

Initializes a new instance of the class with the specified coordinates.
public Point ( int x, int y ) : System.Numerics.Hashing
x int
y int
Результат System.Numerics.Hashing

Round() публичный статический Метод

Converts a PointF to a Point by performing a round operation on all the coordinates.
public static Round ( PointF value ) : Point
value PointF
Результат Point

Round() публичный статический Метод

public static Round ( System value ) : System.Drawing.Point
value System
Результат System.Drawing.Point

Subtract() публичный статический Метод

Translates a by the negative of a given .

public static Subtract ( Point pt, Size sz ) : Point
pt Point
sz Size
Результат Point

Subtract() публичный статический Метод

public static Subtract ( System pt, System sz ) : System.Drawing.Point
pt System
sz System
Результат System.Drawing.Point

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

Converts this to a human readable string.

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

Truncate() публичный статический Метод

Converts a PointF to a Point by performing a truncate operation on all the coordinates.
public static Truncate ( PointF value ) : Point
value PointF
Результат Point

Truncate() публичный статический Метод

public static Truncate ( System value ) : System.Drawing.Point
value System
Результат System.Drawing.Point

operator() публичный статический Метод

Translates a by a given .

public static operator ( ) : Point
Результат Point

operator() публичный статический Метод

public static operator ( ) : System.Drawing.Point
Результат System.Drawing.Point

operator() публичный статический Метод

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

public static operator ( ) : bool
Результат bool

Описание свойств

Empty публичное статическое свойство

Creates a new instance of the class with member data left uninitialized.
public static Point,System.Drawing Empty
Результат Point

Empty публичное статическое свойство

public static System.Drawing.Point Empty
Результат System.Drawing.Point