C# Class Core2D.Style.ShapeStyle

Shape style.
Inheritance: BaseStyle
Mostra file Open project: Core2D/Core2D Class Usage Examples

Public Methods

Method Description
Clone ( ) : ShapeStyle

Clones shape style.

Create ( string name, ArgbColor stroke, ArgbColor fill, double thickness, TextStyle textStyle, LineStyle lineStyle, ArrowStyle startArrowStyle, ArrowStyle endArrowStyle ) : ShapeStyle

Creates a new ShapeStyle instance.

Create ( string name = "", byte sa = 0xFF, byte sr = 0x00, byte sg = 0x00, byte sb = 0x00, byte fa = 0xFF, byte fr = 0x00, byte fg = 0x00, byte fb = 0x00, double thickness = 2.0, TextStyle textStyle = null, LineStyle lineStyle = null, ArrowStyle startArrowStyle = null, ArrowStyle endArrowStyle = null, LineCap lineCap = LineCap.Round, string dashes = default(string), double dashOffset = 0.0 ) : ShapeStyle

Creates a new ShapeStyle instance.

Method Details

Clone() public method

Clones shape style.
public Clone ( ) : ShapeStyle
return ShapeStyle

Create() public static method

Creates a new ShapeStyle instance.
public static Create ( string name, ArgbColor stroke, ArgbColor fill, double thickness, TextStyle textStyle, LineStyle lineStyle, ArrowStyle startArrowStyle, ArrowStyle endArrowStyle ) : ShapeStyle
name string The shape style name.
stroke ArgbColor The stroke color.
fill ArgbColor The fill color.
thickness double The stroke thickness.
textStyle TextStyle The text style.
lineStyle LineStyle The line style.
startArrowStyle ArrowStyle The start arrow style.
endArrowStyle ArrowStyle The end arrow style.
return ShapeStyle

Create() public static method

Creates a new ShapeStyle instance.
public static Create ( string name = "", byte sa = 0xFF, byte sr = 0x00, byte sg = 0x00, byte sb = 0x00, byte fa = 0xFF, byte fr = 0x00, byte fg = 0x00, byte fb = 0x00, double thickness = 2.0, TextStyle textStyle = null, LineStyle lineStyle = null, ArrowStyle startArrowStyle = null, ArrowStyle endArrowStyle = null, LineCap lineCap = LineCap.Round, string dashes = default(string), double dashOffset = 0.0 ) : ShapeStyle
name string The shape style name.
sa byte The stroke color alpha channel.
sr byte The stroke color red channel.
sg byte The stroke color green channel.
sb byte The stroke color blue channel.
fa byte The fill color alpha channel.
fr byte The fill color red channel.
fg byte The fill color green channel.
fb byte The fill color blue channel.
thickness double The stroke thickness.
textStyle TextStyle The text style.
lineStyle LineStyle The line style.
startArrowStyle ArrowStyle The start arrow style.
endArrowStyle ArrowStyle The end arrow style.
lineCap LineCap The line cap.
dashes string The line dashes.
dashOffset double The line dash offset.
return ShapeStyle