C# Class Sphere.Core.Utility.Line

A convenient Line object.
Afficher le fichier Open project: Radnen/spherestudio Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

DrawLine() public méthode

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.
Résultat void

Line() public méthode

Creates a new, empty Line.
public Line ( ) : System.Drawing
Résultat System.Drawing

Line() public méthode

Creates a line from another line.
public Line ( Line copy ) : System.Drawing
copy Line The other line to copy from.
Résultat System.Drawing

Line() public méthode

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.
Résultat System.Drawing

Line() public méthode

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.
Résultat System.Drawing

ToRectangle() public méthode

Grabs the area of this Line.
public ToRectangle ( ) : Rectangle
Résultat System.Drawing.Rectangle

ToRectangle() public static méthode

Grabs the area of a Line.
public static ToRectangle ( Line l ) : Rectangle
l Line The line to convert
Résultat System.Drawing.Rectangle