Kanzi 3.9.10
CsvImporter Class Reference

An example localization plugin for importing localization tables from CSV (Comma Separated Value) files. More...

Inheritance diagram for CsvImporter:
[legend]
Collaboration diagram for CsvImporter:
[legend]

Protected Member Functions

override IEnumerable< LocalizationTableRowImport (string localizationTableName)
 Imports a localization table from a CSV file prompted from the user.
 
- Protected Member Functions inherited from AbstractLocalizationImporter
IEnumerable< LocalizationTableRowImport (string localizationTableName)
 Imports a localization table.
 

Properties

override string Description [get]
 Gets the description of the CSV importer command.
 
override string Name [get]
 Gets the name of the CSV importer command.
 
- Properties inherited from AbstractLocalizationImporter
string Description [get]
 Gets the description of the plugin command.
 
virtual string DisplayName [get]
 Gets the display name of the plugin command.
 
bool InvalidatesUndoHistory [get]
 Indicates that this command breaks the undo chain.
 
string Name [get]
 Gets the name of the plugin command.
 
KanziStudio Studio [get]
 Gets the KanziStudio object, which provides the entry point for operating with the Kanzi Studio plugin API.
 

Detailed Description

An example localization plugin for importing localization tables from CSV (Comma Separated Value) files.

This class implements the abstract class AbstractLocalizationImporter.

Member Function Documentation

◆ Import()

override IEnumerable< LocalizationTableRow > Import ( string localizationTableName)
inlineprotected

Imports a localization table from a CSV file prompted from the user.

Parameters
localizationTableNameThe name of the localization table where the rows should be imported to.
Returns
A list of localization table rows.
Exceptions
System.IO.InvalidDataExceptionThe selected CSV file is malformed. Make sure there are correct number of columns in each row.
System.InvalidOperationExceptionResource name cannot be null for a text resource.

Property Documentation

◆ Description

override string Description
get

Gets the description of the CSV importer command.

Plugin command description.

◆ Name

override string Name
get

Gets the name of the CSV importer command.

Plugin command name.