Class DrawUtils
Draw utils class.
Inheritance
System.Object
DrawUtils
Namespace: FastReport.BG.Styling
Assembly: FastReport.BG.dll
Syntax
public class DrawUtils
Properties
DefaultChartFont
Default Chart Font.
Declaration
public static Font DefaultChartFont { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Font |
DefaultFont
Default font.
Declaration
public static Font DefaultFont { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Font |
DefaultItemHeight
Default Item Height.
Declaration
public static int DefaultItemHeight { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
FixedFont
Gets Fixed Font.
Declaration
public static Font FixedFont { get; }
Property Value
Type | Description |
---|---|
System.Drawing.Font |
ScreenDpi
Gets screen DPI.
Declaration
public static int ScreenDpi { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
MeasureString(Graphics, String, Font, RectangleF, StringFormat)
Measure String.
Declaration
public static SizeF MeasureString(Graphics g, string text, Font font, RectangleF layoutRect, StringFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.String | text | |
System.Drawing.Font | font | |
System.Drawing.RectangleF | layoutRect | |
System.Drawing.StringFormat | format |
Returns
Type | Description |
---|---|
System.Drawing.SizeF |
MeasureString(Graphics, String, Font, StringFormat)
Measure String.
Declaration
public static SizeF MeasureString(Graphics g, string text, Font font, StringFormat format)
Parameters
Type | Name | Description |
---|---|---|
System.Drawing.Graphics | g | |
System.String | text | |
System.Drawing.Font | font | |
System.Drawing.StringFormat | format |
Returns
Type | Description |
---|---|
System.Drawing.SizeF |
MeasureString(String, Font)
Measure String.
Declaration
public static SizeF MeasureString(string text, Font font = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | text | |
System.Drawing.Font | font |
Returns
Type | Description |
---|---|
System.Drawing.SizeF |