C# Class Core2D.Shapes.XLine

Line shape.
Inheritance: Core2D.Shape.BaseShape, ILine
Afficher le fichier Open project: Core2D/Core2D Class Usage Examples

Méthodes publiques

Méthode Description
Create ( XPoint start, XPoint end, ShapeStyle style, BaseShape point, bool isStroked = true, string name = "" ) : XLine

Creates a new XLine instance.

Create ( double x, double y, ShapeStyle style, BaseShape point, bool isStroked = true, string name = "" ) : XLine

Creates a new XLine instance.

Create ( double x1, double y1, double x2, double y2, ShapeStyle style, BaseShape point, bool isStroked = true, string name = "" ) : XLine

Creates a new XLine instance.

Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
GetPoints ( ) : IEnumerable
Move ( double dx, double dy ) : void

Method Details

Create() public static méthode

Creates a new XLine instance.
public static Create ( XPoint start, XPoint end, ShapeStyle style, BaseShape point, bool isStroked = true, string name = "" ) : XLine
start XPoint The point.
end XPoint The point.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
isStroked bool The flag indicating whether shape is stroked.
name string The shape name.
Résultat XLine

Create() public static méthode

Creates a new XLine instance.
public static Create ( double x, double y, ShapeStyle style, BaseShape point, bool isStroked = true, string name = "" ) : XLine
x double The X coordinate of and points.
y double The Y coordinate of and points.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
isStroked bool The flag indicating whether shape is stroked.
name string The shape name.
Résultat XLine

Create() public static méthode

Creates a new XLine instance.
public static Create ( double x1, double y1, double x2, double y2, ShapeStyle style, BaseShape point, bool isStroked = true, string name = "" ) : XLine
x1 double The X coordinate of point.
y1 double The Y coordinate of point.
x2 double The X coordinate of point.
y2 double The Y coordinate of point.
style Core2D.Style.ShapeStyle The shape style.
point Core2D.Shape.BaseShape The point template.
isStroked bool The flag indicating whether shape is stroked.
name string The shape name.
Résultat XLine

Draw() public méthode

public Draw ( object dc, ShapeRenderer renderer, double dx, double dy, ImmutableArray db, XRecord r ) : void
dc object
renderer Core2D.Renderer.ShapeRenderer
dx double
dy double
db ImmutableArray
r Core2D.Data.Database.XRecord
Résultat void

GetPoints() public méthode

public GetPoints ( ) : IEnumerable
Résultat IEnumerable

Move() public méthode

public Move ( double dx, double dy ) : void
dx double
dy double
Résultat void