Class UnitsConverter
The JasperReports units converter.
Inheritance
System.Object
UnitsConverter
Assembly: FastReport.dll
Syntax
public static class UnitsConverter
Methods
ConvertBarcodeSymbology(String, BarcodeObject)
Converts the JasperReports Barcode.Symbology to Barcode.Barcode.
Declaration
public static void ConvertBarcodeSymbology(string symbology, BarcodeObject barcode)
Parameters
Type |
Name |
Description |
System.String |
symbology |
The JasperReports 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 |
|
ConvertBorder(XmlNode)
Converts JasperReports Border.
Declaration
public static Border ConvertBorder(XmlNode border)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
border |
|
Returns
ConvertBorderDashStyle(String)
Converts the JasperReports 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.
|
ConvertBorderLine(XmlNode)
Parse BorderLine from XmlNode.
Declaration
public static BorderLine ConvertBorderLine(XmlNode node)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
node |
|
Returns
ConvertChartType(String)
Converts the JasperReports SeriesChartType to SeriesChartType.
Declaration
public static SeriesChartType ConvertChartType(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
FastReport.DataVisualization.Charting.SeriesChartType |
|
ConvertColor(String)
Converts JasperReports Color.
Declaration
public static Color ConvertColor(string str)
Parameters
Type |
Name |
Description |
System.String |
str |
The DevExpress Color value as string.
|
Returns
Type |
Description |
System.Drawing.Color |
The Color value.
|
ConvertErrorCorrection(String)
Converts string to QRCodeErrorCorrection.
Declaration
public static QRCodeErrorCorrection ConvertErrorCorrection(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
ConvertFloat(String)
Declaration
public static float ConvertFloat(string strFloat)
Parameters
Type |
Name |
Description |
System.String |
strFloat |
|
Returns
Type |
Description |
System.Single |
|
ConvertHyperlinkType(XmlNode)
Convert JasperReports HyperlinkType to HyperlinkKind.
Declaration
public static HyperlinkKind ConvertHyperlinkType(XmlNode node)
Parameters
Type |
Name |
Description |
System.Xml.XmlNode |
node |
|
Returns
ConvertImageSizeMode(String)
Converts string to PictureBoxSizeMode.
Declaration
public static PictureBoxSizeMode ConvertImageSizeMode(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
System.Windows.Forms.PictureBoxSizeMode |
|
ConvertInt(String)
Declaration
public static int ConvertInt(string strInt)
Parameters
Type |
Name |
Description |
System.String |
strInt |
|
Returns
Type |
Description |
System.Int32 |
|
ConvertLineStyle(String)
Converts the JasperReports LineStyle to LineStyle.
Declaration
public static LineStyle ConvertLineStyle(string lineStyle)
Parameters
Type |
Name |
Description |
System.String |
lineStyle |
The JasperReports LineStyle value.
|
Returns
Type |
Description |
LineStyle |
The LineStyle value.
|
ConvertRotation(String)
Converts the JasperReports rotation to int.
Declaration
public static int ConvertRotation(string rotation)
Parameters
Type |
Name |
Description |
System.String |
rotation |
|
Returns
Type |
Description |
System.Int32 |
|
ConvertTextAlignmentToHorzAlign(String)
Converts the JasperReports TextAlignment to HorzAlignment.
Declaration
public static HorzAlign ConvertTextAlignmentToHorzAlign(string textAlignment)
Parameters
Type |
Name |
Description |
System.String |
textAlignment |
The JasperReports TextAlignment value.
|
Returns
Type |
Description |
HorzAlign |
The HorzAlign value.
|
ConvertTextAlignmentToVertAlign(String)
Converts the JasperReports TextAlignment to VertAlignment.
Declaration
public static VertAlign ConvertTextAlignmentToVertAlign(string textAlignment)
Parameters
Type |
Name |
Description |
System.String |
textAlignment |
The JasperReports TextAlignment value.
|
Returns
Type |
Description |
VertAlign |
The VertAlign value.
|