Class DrawUtils
Namespace: FastReport.Olap.Styling
Assembly: FastCube.Mono.dll
Drawing helper class.
public class DrawUtils
Inheritance
Properties
DefaultFont
Gets the default font.
public static Font DefaultFont { get; }
Property Value
DefaultItemHeight
Gets default item height.
public static int DefaultItemHeight { get; }
Property Value
FixedFont
Gets fixed font.
public static Font FixedFont { get; }
Property Value
Methods
GetTrianglePath(Point, int, TriangleDirection)
Gets graphics path for triangle.
public static GraphicsPath GetTrianglePath(Point p, int size, DrawUtils.TriangleDirection direction)
Parameters
p
Point
size
int
direction
DrawUtils.TriangleDirection
Returns
Remarks
Craetes a new instance. Need to dispose it.
MeasureString(string, Font)
Measures string size.
public static SizeF MeasureString(string text, Font font = null)
Parameters
text
string
font
Font
Returns
MeasureString(Graphics, string, Font, StringFormat)
Measures string size.
public static SizeF MeasureString(Graphics g, string text, Font font, StringFormat format)
Parameters
g
Graphics
text
string
font
Font
format
StringFormat
Returns
MeasureString(Graphics, string, Font, RectangleF, StringFormat)
Measures string size.
public static SizeF MeasureString(Graphics g, string text, Font font, RectangleF layoutRect, StringFormat format)
Parameters
g
Graphics
text
string
font
Font
layoutRect
RectangleF
format
StringFormat