Table of Contents

Class OdfTemplateBindOptions

Namespace
OdfKit
Assembly
OdfKit.dll

Configures low-magic template binding behavior. 設定低魔法模板繫結行為。

public sealed class OdfTemplateBindOptions
Inheritance
OdfTemplateBindOptions
Inherited Members

Constructors

OdfTemplateBindOptions()

public OdfTemplateBindOptions()

Properties

Default

Gets a default options instance. 取得預設選項執行個體。

public static OdfTemplateBindOptions Default { get; }

Property Value

OdfTemplateBindOptions

DryRun

Gets or sets whether binding only reports changes without mutating the document. 取得或設定是否只回報變更而不修改文件。

public bool DryRun { get; set; }

Property Value

bool

EnableImagePlaceholders

Gets or sets whether {{Image:Name}} placeholders are replaced with images. 取得或設定是否將 {{Image:Name}} 占位符替換為圖片。

public bool EnableImagePlaceholders { get; set; }

Property Value

bool

ExpandCollections

Gets or sets whether {{Items[].Field}} collection placeholders are expanded. 取得或設定是否展開 {{Items[].Field}} 集合占位符。

public bool ExpandCollections { get; set; }

Property Value

bool

MaxCollectionItems

Gets or sets the maximum number of generated items for one collection placeholder. 取得或設定單一集合占位符可產生的最大項目數。

public int MaxCollectionItems { get; set; }

Property Value

int

ShiftFormulas

Gets or sets whether spreadsheet formulas in expanded template rows are shifted by row offset. 取得或設定試算表模板列展開時是否依列位移調整公式。

public bool ShiftFormulas { get; set; }

Property Value

bool

StrictMode

Gets or sets whether unresolved placeholders make the report incomplete with a strict warning. 取得或設定未解析占位符是否使報告以嚴格模式警告標記為未完成。

public bool StrictMode { get; set; }

Property Value

bool

UnknownPlaceholderPolicy

Gets or sets how unresolved placeholders are handled. 取得或設定如何處理未解析占位符。

public OdfTemplateUnknownPlaceholderPolicy UnknownPlaceholderPolicy { get; set; }

Property Value

OdfTemplateUnknownPlaceholderPolicy