Table of Contents

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

IList<OdfObjectColumnMapping>

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

propertyName string

Returns

OdfObjectColumnMapping

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

propertyName string
header string

Returns

OdfObjectColumnMapping

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

propertyName string
header string
order int?

Returns

OdfObjectColumnMapping

Map(string, string?, int?, bool)

Adds or updates a property mapping. 新增或更新屬性對應。

public OdfObjectColumnMapping Map(string propertyName, string? header, int? order, bool ignore)

Parameters

propertyName string

The property name. / 屬性名稱。

header string

The optional header name. / 選用標題名稱。

order int?

The optional column order. / 選用欄位順序。

ignore bool

Whether the property is ignored. / 是否忽略此屬性。

Returns

OdfObjectColumnMapping

The created mapping. / 已建立的對應。