C# Class Dalssoft.DiagramNet.DiagramUtil

Summary description for DiagramUtil.
Datei anzeigen Open project: AlexandrSurkov/PKStudio Class Usage Examples

Public Methods

Method Description
DisplayToCartesianCoord ( Point p, Rectangle referenceRec ) : Point
GetDirection ( Rectangle rec, Point point ) : CardinalDirection
GetInnerElements ( BaseElement el ) : Dalssoft.DiagramNet.BaseElement[]
GetInnerElementsCount ( BaseElement el ) : int
GetLowerPoint ( Point points ) : Point
GetRelativePoint ( Point location1, Point location2 ) : Point
GetUpperPoint ( Point points ) : Point
MeasureString ( string text, Font font ) : Size
MeasureString ( string text, Font font, PointF origin, StringFormat stringFormat ) : Size
MeasureString ( string text, Font font, SizeF layoutArea ) : Size
MeasureString ( string text, Font font, SizeF layoutArea, StringFormat stringFormat ) : Size
MeasureString ( string text, Font font, SizeF layoutArea, StringFormat stringFormat, int &charactersFitted, int &linesFilled ) : Size
MeasureString ( string text, Font font, int width ) : Size
MeasureString ( string text, Font font, int width, StringFormat format ) : Size
PointToAngle ( Point cartPoint ) : double

Private Methods

Method Description
DiagramUtil ( ) : System

Method Details

DisplayToCartesianCoord() public static method

public static DisplayToCartesianCoord ( Point p, Rectangle referenceRec ) : Point
p Point
referenceRec System.Drawing.Rectangle
return Point

GetDirection() public static method

public static GetDirection ( Rectangle rec, Point point ) : CardinalDirection
rec System.Drawing.Rectangle
point Point
return CardinalDirection

GetInnerElements() public static method

public static GetInnerElements ( BaseElement el ) : Dalssoft.DiagramNet.BaseElement[]
el BaseElement
return Dalssoft.DiagramNet.BaseElement[]

GetInnerElementsCount() public static method

public static GetInnerElementsCount ( BaseElement el ) : int
el BaseElement
return int

GetLowerPoint() public static method

public static GetLowerPoint ( Point points ) : Point
points Point
return Point

GetRelativePoint() public static method

public static GetRelativePoint ( Point location1, Point location2 ) : Point
location1 Point
location2 Point
return Point

GetUpperPoint() public static method

public static GetUpperPoint ( Point points ) : Point
points Point
return Point

MeasureString() public static method

public static MeasureString ( string text, Font font ) : Size
text string
font System.Drawing.Font
return System.Drawing.Size

MeasureString() public static method

public static MeasureString ( string text, Font font, PointF origin, StringFormat stringFormat ) : Size
text string
font System.Drawing.Font
origin System.Drawing.PointF
stringFormat System.Drawing.StringFormat
return System.Drawing.Size

MeasureString() public static method

public static MeasureString ( string text, Font font, SizeF layoutArea ) : Size
text string
font System.Drawing.Font
layoutArea System.Drawing.SizeF
return System.Drawing.Size

MeasureString() public static method

public static MeasureString ( string text, Font font, SizeF layoutArea, StringFormat stringFormat ) : Size
text string
font System.Drawing.Font
layoutArea System.Drawing.SizeF
stringFormat System.Drawing.StringFormat
return System.Drawing.Size

MeasureString() public static method

public static MeasureString ( string text, Font font, SizeF layoutArea, StringFormat stringFormat, int &charactersFitted, int &linesFilled ) : Size
text string
font System.Drawing.Font
layoutArea System.Drawing.SizeF
stringFormat System.Drawing.StringFormat
charactersFitted int
linesFilled int
return System.Drawing.Size

MeasureString() public static method

public static MeasureString ( string text, Font font, int width ) : Size
text string
font System.Drawing.Font
width int
return System.Drawing.Size

MeasureString() public static method

public static MeasureString ( string text, Font font, int width, StringFormat format ) : Size
text string
font System.Drawing.Font
width int
format System.Drawing.StringFormat
return System.Drawing.Size

PointToAngle() public static method

public static PointToAngle ( Point cartPoint ) : double
cartPoint Point
return double