Table of Contents

Class OdfFormControl

Namespace
OdfKit.Forms
Assembly
OdfKit.dll

Provides the OdfFormControl API. 表示 ODF 文件中的單一表單控制項。

public sealed class OdfFormControl
Inheritance
OdfFormControl
Inherited Members

Constructors

OdfFormControl()

public OdfFormControl()

Properties

ControlType

Gets the ControlType value. 取得控制項類型

public OdfControlType ControlType { get; init; }

Property Value

OdfControlType

Height

Gets the Height value. 取得控制項高度

public OdfLength Height { get; init; }

Property Value

OdfLength

IsChecked

Gets a value indicating the IsChecked state. 取得核取方塊是否為勾選狀態

public bool IsChecked { get; init; }

Property Value

bool

Label

Gets the Label value. 取得控制項標籤文字(對應 form:label 屬性)

public string Label { get; init; }

Property Value

string

ListItems

Gets the ListItems value. 取得下拉式清單的選項清單(ListBox 的 form:option 子元素)

public IReadOnlyList<string> ListItems { get; init; }

Property Value

IReadOnlyList<string>

Name

Gets the Name value. 取得控制項名稱(對應 form:name 屬性)

public string Name { get; init; }

Property Value

string

Value

Gets the Value value. 取得控制項的文字值(TextBox 的 form:value,或按鈕標籤)

public string? Value { get; init; }

Property Value

string

Width

Gets the Width value. 取得控制項寬度

public OdfLength Width { get; init; }

Property Value

OdfLength

X

Gets the X value. 取得控制項在頁面上的 X 位置

public OdfLength X { get; init; }

Property Value

OdfLength

Y

Gets the Y value. 取得控制項在頁面上的 Y 位置

public OdfLength Y { get; init; }

Property Value

OdfLength