Class OdfObjectColumnMap
- Namespace
- OdfKit.Spreadsheet
- Assembly
- OdfKit.dll
Configures object property to spreadsheet column mappings. 設定物件屬性與試算表欄位的對應。
public sealed class OdfObjectColumnMap
- Inheritance
-
OdfObjectColumnMap
- Inherited Members
Constructors
OdfObjectColumnMap()
public OdfObjectColumnMap()
Properties
Columns
Gets the column mappings. 取得欄位對應集合。
public IList<OdfObjectColumnMapping> Columns { get; }
Property Value
Methods
Map(string)
Short overload of Map that accepts propertyName; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 propertyName;其餘可選參數使用預設值並轉呼叫最長 Map 多載。
public OdfObjectColumnMapping Map(string propertyName)
Parameters
propertyNamestring
Returns
Map(string, string?)
Short overload of Map that accepts propertyName and header; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 propertyName 與 header;其餘可選參數使用預設值並轉呼叫最長 Map 多載。
public OdfObjectColumnMapping Map(string propertyName, string? header)
Parameters
Returns
Map(string, string?, int?)
Short overload of Map that accepts propertyName, header, and order; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 propertyName、header 與 order;其餘可選參數使用預設值並轉呼叫最長 Map 多載。
public OdfObjectColumnMapping Map(string propertyName, string? header, int? order)
Parameters
Returns
Map(string, string?, int?, bool)
Adds or updates a property mapping. 新增或更新屬性對應。
public OdfObjectColumnMapping Map(string propertyName, string? header, int? order, bool ignore)
Parameters
propertyNamestringThe property name. / 屬性名稱。
headerstringThe optional header name. / 選用標題名稱。
orderint?The optional column order. / 選用欄位順序。
ignoreboolWhether the property is ignored. / 是否忽略此屬性。
Returns
- OdfObjectColumnMapping
The created mapping. / 已建立的對應。