C# Class LitDev.LDFigures

Show file Open project: litdev1/LitDev

Public Methods

Method Description
AddArc ( Primitive width, Primitive height, Primitive startAngle, Primitive endAngle, Primitive thickness ) : Primitive

Add an arc shape.

AddBlockArrow ( Primitive width, Primitive height, Primitive thickness, Primitive arrowAngle, Primitive direction ) : Primitive

Add an block arrow shape.

AddCallout ( Primitive width, Primitive height, Primitive text, Primitive style, Primitive anchor ) : Primitive

Add a callout shape.

AddLineArrow ( Primitive width, Primitive height, Primitive size, Primitive bend, Primitive startArrow, Primitive endArrow, Primitive startCorner ) : Primitive

Add a line arrow shape.

AddRegularPolygon ( Primitive width, Primitive height, Primitive corners, Primitive radius ) : Primitive

Add a regular polygon shape.

Private Methods

Method Description
AddFigure ( eFigure figure, double width, double height, Primitive properties ) : string
ExtractDll ( ) : void

Method Details

AddArc() public static method

Add an arc shape.
public static AddArc ( Primitive width, Primitive height, Primitive startAngle, Primitive endAngle, Primitive thickness ) : Primitive
width Primitive The width of the shape.
height Primitive The height of the shape.
startAngle Primitive The starting angle in degrees.
endAngle Primitive The ending angle in degrees.
thickness Primitive The thickness of the arc in pixels.
return Primitive

AddBlockArrow() public static method

Add an block arrow shape.
public static AddBlockArrow ( Primitive width, Primitive height, Primitive thickness, Primitive arrowAngle, Primitive direction ) : Primitive
width Primitive The width of the shape.
height Primitive The height of the shape.
thickness Primitive The relative thickness of the arrow shaft, e.g. 0.25.
arrowAngle Primitive The arrow head angle in degrees.
direction Primitive The direction of the arrow: "Up", "Down", "Left" or "Right".
return Primitive

AddCallout() public static method

Add a callout shape.
public static AddCallout ( Primitive width, Primitive height, Primitive text, Primitive style, Primitive anchor ) : Primitive
width Primitive The width of the shape.
height Primitive The height of the shape.
text Primitive The callout text.
style Primitive The callout style: "Cloud", "Oval", "Rectangle" or "RoundedRectangle".
anchor Primitive Position of callout anchor relative to the callout size (e.g. "X=0;Y=1.25;")
return Primitive

AddLineArrow() public static method

Add a line arrow shape.
public static AddLineArrow ( Primitive width, Primitive height, Primitive size, Primitive bend, Primitive startArrow, Primitive endArrow, Primitive startCorner ) : Primitive
width Primitive The width of the shape.
height Primitive The height of the shape.
size Primitive The size of the arrow head in pixels.
bend Primitive The arrow bend amount (e.g. 0 is straight, 0.5 is smoothly bending).
startArrow Primitive The start arrow type: "None", "Arrow", "Open", "Oval" or "Stealth".
endArrow Primitive The end arrow type: "None", "Arrow", "Open", "Oval" or "Stealth".
startCorner Primitive The start corner position: "BottomLeft", "BottomRight", "TopLeft" or "TopRight". The arrow will terminate in the opposite corner.
return Primitive

AddRegularPolygon() public static method

Add a regular polygon shape.
public static AddRegularPolygon ( Primitive width, Primitive height, Primitive corners, Primitive radius ) : Primitive
width Primitive The width of the shape.
height Primitive The height of the shape.
corners Primitive The number of corners.
radius Primitive A relative radius for star shapes (e.g. 1 for pentagon, 0.5 for 5 pointed star).
return Primitive