Class UnitsConverter
The RDL units converter.
Inheritance
Namespace: FastReport.Import.RDL
Assembly: FastReport.Base.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. |
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. |
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 |
---|---|
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 |
---|---|
FontStyle | The FontStyle 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 |
---|---|
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 |
---|---|
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 |
---|---|
ContentAlignment | The ContentAlignment 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. |