...
Description |
---|
Excerpt |
---|
Gets or sets the culture information to be used to convert the numeric strings such as currencies and formatted numerals in the imported data to numbers. By default it is set to |
...
. |
...
This |
...
property |
...
setting |
...
will |
...
take |
...
effect |
...
only |
...
if |
...
the |
...
...
property |
...
is |
...
set |
...
to |
...
|
...
. |
Signature | ||||
---|---|---|---|---|
| ||||
public System.Globalization.CultureInfo ConversionCulture { get; set; }
{signature}
{signature: |
Signature | ||||||
---|---|---|---|---|---|---|
| }
| |||||
Public Property ConversionCulture() As System.Globalization.CultureInfo
{signature}
{exceptions}
{exception:ArgumentException}
When the {{ConversionCulture}} property is set to {{null}} \(C\#\) or {{Nothing}} \ |
Exceptions |
---|
Exception | ||||
---|---|---|---|---|
| ||||
When the ), ExcelWriter will throw this exception. {exception} {remarks} By |
Remarks |
---|
By default, when importing data, ExcelWriter will not convert numeric strings to numbers. If the [|DataImportProperties.ConvertStrings]property is set to {{
, ExcelWriter will parse the strings into a {{
type by using the culture information specified through the {{
property. However if {{
is set to {{
, the setting of the {{
property will not take any effect and the numeric string will not be converted. If {{ConvertStrings}} is enabled but no culture is set for the {{ConversionCulture}} property, then ExcelWriter will use the invariant culture, {{If , to parse the numeric strings. {remarks} {example} {code:csharp|title=C#} |
Example | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|