Class UnitsConverter
The StimulSoft units converter.
Inheritance
System.Object
UnitsConverter
Assembly: FastReport.Base.dll
Syntax
public static class UnitsConverter
Methods
ConverPageUnits(String)
Converts value to PageUnits.
Declaration
public static PageUnits ConverPageUnits(string unitType)
Parameters
Type |
Name |
Description |
System.String |
unitType |
|
Returns
ConvertBarcodeSymbology(String, BarcodeObject)
Converts the StimulSoft Barcode.Symbology to Barcode.Barcode.
Declaration
public static void ConvertBarcodeSymbology(string symbology, BarcodeObject barcode)
Parameters
Type |
Name |
Description |
System.String |
symbology |
The StimulSoft 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(String)
Converts StimulSoft Border.
Declaration
public static Border ConvertBorder(string border)
Parameters
Type |
Name |
Description |
System.String |
border |
|
Returns
ConvertBorderDashStyle(String)
Converts the StimulSoft 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)
Converts the StimulSoft border sides to FastReport border sides
Declaration
public static BorderLines ConvertBorderSides(string sides)
Parameters
Type |
Name |
Description |
System.String |
sides |
|
Returns
ConvertBrush(String)
Converts the StimulSoft Brush to FillBase object.
Declaration
public static FillBase ConvertBrush(string brush)
Parameters
Type |
Name |
Description |
System.String |
brush |
|
Returns
ConvertBrushToColor(FillBase)
Declaration
public static Color ConvertBrushToColor(FillBase fill)
Parameters
Returns
ConvertCapStyle(String)
Converts the StimulSoft CapStyle to CapStyle.
Declaration
public static CapStyle ConvertCapStyle(string style)
Parameters
Type |
Name |
Description |
System.String |
style |
|
Returns
ConvertCheckSymbol(String)
Converts the StimulSoft CheckedSymbol to CheckedSymbol.
Declaration
public static CheckedSymbol ConvertCheckSymbol(string checksymbol)
Parameters
Type |
Name |
Description |
System.String |
checksymbol |
|
Returns
ConvertColor(String)
Converts StimulSoft 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.
|
ConvertContentAlignment(String)
Converts the StimulSoft SeriesChartType to SeriesChartType.
Declaration
public static ContentAlignment ConvertContentAlignment(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
Type |
Description |
ContentAlignment |
|
ConvertFloat(String)
Declaration
public static float ConvertFloat(string strFloat)
Parameters
Type |
Name |
Description |
System.String |
strFloat |
|
Returns
Type |
Description |
System.Single |
|
Converts the StimulSoft Format to FormatBase object.
Declaration
public static FormatBase ConvertFormat(XmlNode node)
Parameters
Type |
Name |
Description |
XmlNode |
node |
|
Returns
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 StimulSoft LineStyle to LineStyle.
Declaration
public static LineStyle ConvertLineStyle(string lineStyle)
Parameters
Type |
Name |
Description |
System.String |
lineStyle |
The StimulSoft LineStyle value.
|
Returns
Type |
Description |
LineStyle |
The LineStyle value.
|
ConvertPaperSize(String, ReportPage)
Converts the PaperSize to width and height values of paper size in millimeters
Declaration
public static void ConvertPaperSize(string paperSize, ReportPage page)
Parameters
Type |
Name |
Description |
System.String |
paperSize |
The PaperSize value.
|
ReportPage |
page |
The ReportPage instance.
|
ConvertPoint(String)
Parse string to struct f Point.
Declaration
public static Point ConvertPoint(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
ConvertRTF(String)
Converts the StimulSoft RTF string to raw RTF.
Declaration
public static string ConvertRTF(string rtfStimulsoft)
Parameters
Type |
Name |
Description |
System.String |
rtfStimulsoft |
|
Returns
Type |
Description |
System.String |
|
ConvertSize(String)
Parse string to struct of Size.
Declaration
public static Size ConvertSize(string value)
Parameters
Type |
Name |
Description |
System.String |
value |
|
Returns
ConvertTextAlignmentToHorzAlign(String)
Converts the StimulSoft TextAlignment to HorzAlignment.
Declaration
public static HorzAlign ConvertTextAlignmentToHorzAlign(string textAlignment)
Parameters
Type |
Name |
Description |
System.String |
textAlignment |
The StimulSoft TextAlignment value.
|
Returns
Type |
Description |
HorzAlign |
The HorzAlign value.
|
ConvertTextAlignmentToVertAlign(String)
Converts the StimulSoft TextAlignment to VertAlignment.
Declaration
public static VertAlign ConvertTextAlignmentToVertAlign(string textAlignment)
Parameters
Type |
Name |
Description |
System.String |
textAlignment |
The StimulSoft TextAlignment value.
|
Returns
Type |
Description |
VertAlign |
The VertAlign value.
|
GetMatrixAggregateFunction(XmlNode)
Converts the StimulSoft AggregateFunction sides to FastReport MatrixAggregateFunction
Declaration
public static MatrixAggregateFunction GetMatrixAggregateFunction(XmlNode node)
Parameters
Type |
Name |
Description |
XmlNode |
node |
|
Returns
GetPixelsInUnit(PageUnits)
Converts value to PageUnits.
Declaration
public static float GetPixelsInUnit(PageUnits unitType)
Parameters
Returns
Type |
Description |
System.Single |
|