C# Класс Evbpc.Framework.Drawing.Point

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

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

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

Private Properties

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

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

Метод Описание
Add ( Point pt, Size sz ) : Point

Offsets a Point by the specified Size.

Ceiling ( PointF value ) : Point

Constructs a new Point from the specified PointF by rounding all float values up to the nearest whole number.

Equals ( object obj ) : bool

Determines if the current Point is equal to the specified object.

FromBytes ( byte data ) : void

Constructs this Point from a byte array.

GetBytes ( ) : byte[]

Converts the current Point to a byte array.

GetHashCode ( ) : int

Gets a hash code for the current Point.

Offset ( Point p ) : Point

Offsets the current Point by the specified Point.

Offset ( int dx, int dy ) : Point

Offsets the current Point by the specified X and Y values.

Point ( Size sz ) : Evbpc.Framework.Utilities.Serialization

Constructs a new instance of Point from the specified Size.

The Size.Width will become the X and the Size.Height will become the Y.

Point ( int x, int y ) : Evbpc.Framework.Utilities.Serialization

Constructs a new instance of Point from the specified X and Y.

Round ( PointF value ) : Point

Constructs a new Point from the specified PointF by rounding all values to the nearest whole number.

Subtract ( Point pt, Size sz ) : Point

Subtracts a Point by a Size.

ToString ( ) : string

Gets a string representation of the current Point.

Truncate ( PointF value ) : Point

Constructs a new Point from the specified PointF by rounding all values down to the nearest whole number.

operator ( ) : Point

Offsets a Point object by the specified Size.

operator ( ) : bool

Determines if two Point structures are equal.

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

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

Offsets a Point by the specified Size.
public static Add ( Point pt, Size sz ) : Point
pt Point The that should be offset.
sz Size The to offset by.
Результат Point

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

Constructs a new Point from the specified PointF by rounding all float values up to the nearest whole number.
public static Ceiling ( PointF value ) : Point
value PointF The to be rounded up.
Результат Point

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

Determines if the current Point is equal to the specified object.
public Equals ( object obj ) : bool
obj object The object to compare to the current .
Результат bool

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

Constructs this Point from a byte array.
public FromBytes ( byte data ) : void
data byte The byte array to construct the from.
Результат void

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

Converts the current Point to a byte array.
public GetBytes ( ) : byte[]
Результат byte[]

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

Gets a hash code for the current Point.
public GetHashCode ( ) : int
Результат int

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

Offsets the current Point by the specified Point.
public Offset ( Point p ) : Point
p Point The to offest this by.
Результат Point

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

Offsets the current Point by the specified X and Y values.
public Offset ( int dx, int dy ) : Point
dx int The value representing how far to offset the of the current .
dy int The value representing how far to offset the of the current .
Результат Point

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

Constructs a new instance of Point from the specified Size.
The Size.Width will become the X and the Size.Height will become the Y.
public Point ( Size sz ) : Evbpc.Framework.Utilities.Serialization
sz Size The to construct the from.
Результат Evbpc.Framework.Utilities.Serialization

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

Constructs a new instance of Point from the specified X and Y.
public Point ( int x, int y ) : Evbpc.Framework.Utilities.Serialization
x int The value that should represent the .
y int The value that should represent the .
Результат Evbpc.Framework.Utilities.Serialization

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

Constructs a new Point from the specified PointF by rounding all values to the nearest whole number.
public static Round ( PointF value ) : Point
value PointF The to be rounded.
Результат Point

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

Subtracts a Point by a Size.
public static Subtract ( Point pt, Size sz ) : Point
pt Point The to be subtracted from.
sz Size The to subtract.
Результат Point

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

Gets a string representation of the current Point.
public ToString ( ) : string
Результат string

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

Constructs a new Point from the specified PointF by rounding all values down to the nearest whole number.
public static Truncate ( PointF value ) : Point
value PointF The to be rounded down.
Результат Point

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

Offsets a Point object by the specified Size.
public static operator ( ) : Point
Результат Point

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

Determines if two Point structures are equal.
public static operator ( ) : bool
Результат bool

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

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

Represents a Point with default values.
public static Point Empty
Результат Point