Table of Contents

Class DrawUtils

Namespace: FastReport.Olap.Styling
Assembly: FastCube.Mono.dll

Drawing helper class.

public class DrawUtils

Inheritance

objectDrawUtils

Properties

DefaultFont

Gets the default font.

public static Font DefaultFont { get; }

Property Value

Font

DefaultItemHeight

Gets default item height.

public static int DefaultItemHeight { get; }

Property Value

int

FixedFont

Gets fixed font.

public static Font FixedFont { get; }

Property Value

Font

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

GraphicsPath

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

SizeF

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

SizeF

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

Returns

SizeF