Class DrawUtils
Inheritance
System.Object
DrawUtils
Assembly: FastReport.Base.dll
Syntax
public static class DrawUtils
Properties
DefaultFont
Gets or sets default font used in FR UI.
Declaration
public static Font DefaultFont { get; set; }
Property Value
DefaultReportFont
Declaration
public static Font DefaultReportFont { get; }
Property Value
DefaultTextObjectFont
Declaration
public static Font DefaultTextObjectFont { get; }
Property Value
FixedFont
Declaration
public static Font FixedFont { get; }
Property Value
ScreenDpi
Declaration
public static int ScreenDpi { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
ScreenDpiFX
Declaration
public static float ScreenDpiFX { get; }
Property Value
| Type |
Description |
| System.Single |
|
UIScale
Gets or sets a value that determines additional scale factor applied to FR forms.
Used if you change the DefaultFont property.
Declaration
public static float UIScale { get; set; }
Property Value
| Type |
Description |
| System.Single |
|
Methods
Declaration
public static SizeF MeasureString(Graphics g, string text, Font font, RectangleF layoutRect, StringFormat format)
Parameters
| Type |
Name |
Description |
| Graphics |
g |
|
| System.String |
text |
|
| Font |
font |
|
| RectangleF |
layoutRect |
|
| StringFormat |
format |
|
Returns
Declaration
public static SizeF MeasureString(Graphics g, string text, Font font, StringFormat format)
Parameters
| Type |
Name |
Description |
| Graphics |
g |
|
| System.String |
text |
|
| Font |
font |
|
| StringFormat |
format |
|
Returns
MeasureString(String)
Declaration
public static SizeF MeasureString(string text)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
Returns
MeasureString(String, Font)
Declaration
public static SizeF MeasureString(string text, Font font)
Parameters
| Type |
Name |
Description |
| System.String |
text |
|
| Font |
font |
|
Returns