Class UnitsConverter
The RDL units converter.
Inheritance
Namespace: FastReport.Import.RDL
Assembly: FastReport.dll
Syntax
public static class UnitsConverter
Methods
BooleanToBool(String)
Converts the RDL Boolean to bool value.
Declaration
public static bool BooleanToBool(string boolean)
Parameters
Type | Name | Description |
---|---|---|
System.String | boolean | The RDL Boolean value. |
Returns
Type | Description |
---|---|
System.Boolean | The bool value. |
ConvertAxisVisibleToAxisEnabled(String)
Converts the RDL Axis.Visible to AxisEnabled.
Declaration
public static AxisEnabled ConvertAxisVisibleToAxisEnabled(string axisVisible)
Parameters
Type | Name | Description |
---|---|---|
System.String | axisVisible | The RDL Axis.Visible value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.AxisEnabled | The AxisEnabled value. |
ConvertBorderStyle(String)
Converts the RDL BorderStyle to LineStyle.
Declaration
public static LineStyle ConvertBorderStyle(string borderStyle)
Parameters
Type | Name | Description |
---|---|---|
System.String | borderStyle | The RDL BorderStyle value. |
Returns
Type | Description |
---|---|
LineStyle | The LineStyle value. |
ConvertBorderStyleToChartDashStyle(String)
Converts the RDL BorderStyle to ChartDashStyle.
Declaration
public static ChartDashStyle ConvertBorderStyleToChartDashStyle(string borderStyle)
Parameters
Type | Name | Description |
---|---|---|
System.String | borderStyle | The RDL BorderStyle value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.ChartDashStyle | The ChartDashStyle value. |
ConvertChartLegendLayout(String)
Converts the RDL Chart.Legend.Layout to LegendStyle.
Declaration
public static LegendStyle ConvertChartLegendLayout(string chartLegendLayout)
Parameters
Type | Name | Description |
---|---|---|
System.String | chartLegendLayout | The RDL Chart.Legend.Layout value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.LegendStyle | The LegendStyle value. |
ConvertChartLegendPosition(String, Legend)
Converts the RDL Chart.Legend.Position to Legend.Docking and Legend.Alignment.
Declaration
public static void ConvertChartLegendPosition(string chartLegendPosition, Legend legend)
Parameters
Type | Name | Description |
---|---|---|
System.String | chartLegendPosition | The RDL Chart.Legend.Position value. |
FastReport.DataVisualization.Charting.Legend | legend | The Legend instance to convert to. |
ConvertChartPalette(String)
Converts the RDL Chart.Palette to ChartColorPalette.
Declaration
public static ChartColorPalette ConvertChartPalette(string chartPalette)
Parameters
Type | Name | Description |
---|---|---|
System.String | chartPalette | The RDL Chart.Palette value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.ChartColorPalette | The RDL ChartColorPalette value. |
ConvertChartType(String)
Converts the RDL Chart.Type to SeriesChartType.
Declaration
public static SeriesChartType ConvertChartType(string chartType)
Parameters
Type | Name | Description |
---|---|---|
System.String | chartType | The RDL Chart.Type value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.SeriesChartType | The SeriesChartType value. |
ConvertColor(String)
Converts the RDL Color to Color.
Declaration
public static Color ConvertColor(string colorName)
Parameters
Type | Name | Description |
---|---|---|
System.String | colorName | The RDL Color value. |
Returns
Type | Description |
---|---|
System.Drawing.Color | The Color value. |
ConvertFontSize(String)
Converts the RDL FontSize to float.
Declaration
public static float ConvertFontSize(string fontSize)
Parameters
Type | Name | Description |
---|---|---|
System.String | fontSize | The RDL FontSize value. |
Returns
Type | Description |
---|---|
System.Single | The float value of RDL FontSize in points. |
ConvertFontStyle(String)
Converts the RDL FontStyle to FontStyle.
Declaration
public static FontStyle ConvertFontStyle(string fontStyle)
Parameters
Type | Name | Description |
---|---|---|
System.String | fontStyle | The RDL FontStyle value. |
Returns
Type | Description |
---|---|
System.Drawing.FontStyle | The FontStyle value. |
ConvertGradientType(String)
Converts the RDL GradientType to GradientStyle.
Declaration
public static GradientStyle ConvertGradientType(string gradientType)
Parameters
Type | Name | Description |
---|---|---|
System.String | gradientType | The RDL GradientType value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.GradientStyle | The GradientStyle value. |
ConvertShading(String)
Converts the RDL Shading to LightStyle.
Declaration
public static LightStyle ConvertShading(string shading)
Parameters
Type | Name | Description |
---|---|---|
System.String | shading | The RDL Shading value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.LightStyle | The LightStyle value. |
ConvertSizing(String)
Converts the RDL Sizing to PictureBoxSizeMode.
Declaration
public static PictureBoxSizeMode ConvertSizing(string sizing)
Parameters
Type | Name | Description |
---|---|---|
System.String | sizing | The RDL Sizing value. |
Returns
Type | Description |
---|---|
System.Windows.Forms.PictureBoxSizeMode | The PictureBoxSizeMode value. |
ConvertTextAlign(String)
Converts the RDL TextAlign to HorzAlign.
Declaration
public static HorzAlign ConvertTextAlign(string textAlign)
Parameters
Type | Name | Description |
---|---|---|
System.String | textAlign | The RDL TextAlign value. |
Returns
Type | Description |
---|---|
HorzAlign | The HorzAlign value. |
ConvertTextAlignToStringAlignment(String)
Converts the RDL TextAlign to StringAlignment.
Declaration
public static StringAlignment ConvertTextAlignToStringAlignment(string textAlign)
Parameters
Type | Name | Description |
---|---|---|
System.String | textAlign | The RDL TextAling value. |
Returns
Type | Description |
---|---|
System.Drawing.StringAlignment | The StringAlignment value. |
ConvertTextAndVerticalAlign(String, String)
Converts the RDL TextAlign and VerticalAlign to ContentAlignment.
Declaration
public static ContentAlignment ConvertTextAndVerticalAlign(string textAlign, string vertAlign)
Parameters
Type | Name | Description |
---|---|---|
System.String | textAlign | The RDL TextAlign value. |
System.String | vertAlign | The RDL VerticalAlign value. |
Returns
Type | Description |
---|---|
System.Drawing.ContentAlignment | The ContentAlignment value. |
ConvertTickMarkStyle(String)
Converts the RDL TickMarkStyle to TickMarkStyle.
Declaration
public static TickMarkStyle ConvertTickMarkStyle(string tickMarkStyle)
Parameters
Type | Name | Description |
---|---|---|
System.String | tickMarkStyle | The RDL TickMarkStyle value. |
Returns
Type | Description |
---|---|
FastReport.DataVisualization.Charting.TickMarkStyle | The TickMarkStyle value. |
ConvertVerticalAlign(String)
Converts the RDL TextAlign to VerticalAlign.
Declaration
public static VertAlign ConvertVerticalAlign(string verticalAlign)
Parameters
Type | Name | Description |
---|---|---|
System.String | verticalAlign | The RDL VerticalAlign value. |
Returns
Type | Description |
---|---|
VertAlign | The VertAlign value. |
ConvertWritingMode(String)
Converts the RDL WritingMode to Angle.
Declaration
public static int ConvertWritingMode(string writingMode)
Parameters
Type | Name | Description |
---|---|---|
System.String | writingMode | The RDL WritingMode value. |
Returns
Type | Description |
---|---|
System.Int32 | The int value of RDL WritingMode in degree. |
SizeToFloat(String, String)
Converts the RDL Size to float value.
Declaration
public static float SizeToFloat(string size, string unit)
Parameters
Type | Name | Description |
---|---|---|
System.String | size | The RDL Size value. |
System.String | unit | The RDL Size units measure. |
Returns
Type | Description |
---|---|
System.Single | The float value of RDL Size. |
SizeToInt(String, String)
Converts the RDL Size to int value.
Declaration
public static int SizeToInt(string size, string unit)
Parameters
Type | Name | Description |
---|---|---|
System.String | size | The RDL Size value. |
System.String | unit | The RDL Size units measure. |
Returns
Type | Description |
---|---|
System.Int32 | The int value of RDL Size. |
SizeToMillimeters(String)
Converts the RDL Size to millimeters.
Declaration
public static float SizeToMillimeters(string size)
Parameters
Type | Name | Description |
---|---|---|
System.String | size | The RDL Size value. |
Returns
Type | Description |
---|---|
System.Single | The float value of RDL Size in millimeters. |
SizeToPixels(String)
Converts the RDL Size to pixels.
Declaration
public static float SizeToPixels(string size)
Parameters
Type | Name | Description |
---|---|---|
System.String | size | The RDL Size value. |
Returns
Type | Description |
---|---|
System.Single | The float value of RDL Size in pixels. |