Class UnitsConverter
The DevExpress units converter.
Inheritance
Namespace: FastReport.Import.DevExpress
Assembly: FastReport.Base.dll
Syntax
public static class UnitsConverter
Fields
Ratio
Declaration
public static float Ratio
Field Value
Type | Description |
---|---|
System.Single |
Methods
ConvertBackColor(String)
Converts DevExpress BackColor.
Declaration
public static Color ConvertBackColor(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | The DevExpress BackColor value as string. |
Returns
Type | Description |
---|---|
Color | The Color value. |
ConvertBarcodeSymbology(String, BarcodeObject)
Converts the DevExpress Barcode.Symbology to Barcode.Barcode.
Declaration
public static void ConvertBarcodeSymbology(string symbology, BarcodeObject barcode)
Parameters
Type | Name | Description |
---|---|---|
System.String | symbology | The DevExpress Barcode.Symbology value as string. |
BarcodeObject | barcode | The BarcodeObject instance. |
ConvertBool(String)
Converts value to Boolean.
Declaration
public static bool ConvertBool(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | Boolen value as string. |
Returns
Type | Description |
---|---|
System.Boolean |
ConvertBorderDashStyle(String)
Converts the DevExpress BorderDashStyle to LineStyle.
Declaration
public static LineStyle ConvertBorderDashStyle(string borderDashStyle)
Parameters
Type | Name | Description |
---|---|---|
System.String | borderDashStyle | The DevExpress BorderDashStyle value. |
Returns
Type | Description |
---|---|
LineStyle | The LineStyle value. |
ConvertBorderSides(String, Border)
Converts the DevExpress border sides to FastReport border sides
Declaration
public static BorderLines ConvertBorderSides(string sides, Border border)
Parameters
Type | Name | Description |
---|---|---|
System.String | sides | The DevExpress Barcode.Symbology value as string. |
Border | border | The BarcodeObject instance. |
Returns
Type | Description |
---|---|
BorderLines |
ConvertColor(String)
Converts DevExpress Color.
Declaration
public static Color ConvertColor(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | The DevExpress Color value as string. |
Returns
Type | Description |
---|---|
Color | The Color value. |
ConvertImageSizeMode(String)
Converts the DevExpress ImageSizeMode to PictureBoxSizeMode.
Declaration
public static PictureBoxSizeMode ConvertImageSizeMode(string sizeMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | sizeMode | The ImageSizeMode value as string. |
Returns
Type | Description |
---|---|
PictureBoxSizeMode | The PictureBoxSizeMode value. |
ConvertLineStyle(String)
Converts the DevExpress LineStyle to LineStyle.
Declaration
public static LineStyle ConvertLineStyle(string lineStyle)
Parameters
Type | Name | Description |
---|---|---|
System.String | lineStyle | The DevExpress LineStyle value. |
Returns
Type | Description |
---|---|
LineStyle | The LineStyle value. |
ConvertShape(String)
Converts the DevExpress Shape to ShapeKind.
Declaration
public static ShapeKind ConvertShape(string shape)
Parameters
Type | Name | Description |
---|---|---|
System.String | shape | The DevExpress Shape value as string. |
Returns
Type | Description |
---|---|
ShapeKind | The ShapeKind value. |
ConvertTextAlignmentToHorzAlign(String)
Converts the DevExpress TextAlignment to HorzAlignment.
Declaration
public static HorzAlign ConvertTextAlignmentToHorzAlign(string textAlignment)
Parameters
Type | Name | Description |
---|---|---|
System.String | textAlignment | The DevExpress TextAlignment value. |
Returns
Type | Description |
---|---|
HorzAlign | The HorzAlign value. |
ConvertTextAlignmentToVertAlign(String)
Converts the DevExpress TextAlignment to VertAlignment.
Declaration
public static VertAlign ConvertTextAlignmentToVertAlign(string textAlignment)
Parameters
Type | Name | Description |
---|---|---|
System.String | textAlignment | The DevExpress TextAlignment value. |
Returns
Type | Description |
---|---|
VertAlign | The VertAlign value. |
SizeFToPixels(String)
Converts SizeF to pixels.
Declaration
public static float SizeFToPixels(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | SizeF value as string. |
Returns
Type | Description |
---|---|
System.Single | The value in pixels. |
SizeFToPixelsFont(String)
Converts SizeF to pixels.
Declaration
public static float SizeFToPixelsFont(string str)
Parameters
Type | Name | Description |
---|---|---|
System.String | str | SizeF value as string. |
Returns
Type | Description |
---|---|
System.Single | The value in pixels. |
Remarks
Use this method for fonts, because font size is not stored as multiplied by dpi