C# Класс Sphere.Core.Utility.Line

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

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

Метод Описание
DrawLine ( Graphics g, Pen pen ) : void

Draws this line to the System.Drawing.Graphics.

Line ( ) : System.Drawing

Creates a new, empty Line.

Line ( Line copy ) : System.Drawing

Creates a line from another line.

Line ( Point start, Point end ) : System.Drawing

Creates a line with some values.

Line ( short x1, short y1, short x2, short y2 ) : System.Drawing

Creates a line with some values.

ToRectangle ( ) : Rectangle

Grabs the area of this Line.

ToRectangle ( Line l ) : Rectangle

Grabs the area of a Line.

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

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

Draws this line to the System.Drawing.Graphics.
public DrawLine ( Graphics g, Pen pen ) : void
g System.Drawing.Graphics The System.Drawing.graphics to use.
pen System.Drawing.Pen The pen style to use.
Результат void

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

Creates a new, empty Line.
public Line ( ) : System.Drawing
Результат System.Drawing

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

Creates a line from another line.
public Line ( Line copy ) : System.Drawing
copy Line The other line to copy from.
Результат System.Drawing

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

Creates a line with some values.
public Line ( Point start, Point end ) : System.Drawing
start System.Drawing.Point The start Point.
end System.Drawing.Point The end Point.
Результат System.Drawing

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

Creates a line with some values.
public Line ( short x1, short y1, short x2, short y2 ) : System.Drawing
x1 short The start x.
y1 short The start y.
x2 short The end x.
y2 short The end y.
Результат System.Drawing

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

Grabs the area of this Line.
public ToRectangle ( ) : Rectangle
Результат System.Drawing.Rectangle

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

Grabs the area of a Line.
public static ToRectangle ( Line l ) : Rectangle
l Line The line to convert
Результат System.Drawing.Rectangle