Table of Contents

Class OdfRowCollection

Namespace
OdfKit.Spreadsheet
Assembly
OdfKit.dll

Indexes worksheet rows by position. 提供工作表列的索引入口。

public sealed class OdfRowCollection
Inheritance
OdfRowCollection
Inherited Members

Properties

this[int]

Gets a row by index. 依索引取得列。

public OdfSheetRow this[int index] { get; }

Parameters

index int

The zero-based row index. / 採 0 為基準的列索引。

Property Value

OdfSheetRow

The specified row. / 指定列。

Methods

Group(int, int)

Short overload of Group that accepts startRow and endRow; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 startRow 與 endRow;其餘可選參數使用預設值並轉呼叫最長 Group 多載。

public void Group(int startRow, int endRow)

Parameters

startRow int
endRow int

Group(int, int, bool)

Groups the specified row range so it can be expanded or collapsed. 將指定列範圍設為可展開/收合的群組。

public void Group(int startRow, int endRow, bool collapsed)

Parameters

startRow int

The zero-based start row index. / 採 0 為基準的起始列索引。

endRow int

The zero-based inclusive end row index. / 採 0 為基準且包含在內的結束列索引。

collapsed bool

Whether the group is collapsed by default. / 是否預設為收合狀態。

Ungroup(int, int)

Removes the group containing the specified row range and moves the rows back to the worksheet body. 移除包含指定列範圍的群組,將列移回工作表主體。

public void Ungroup(int startRow, int endRow)

Parameters

startRow int

The zero-based start row index. / 採 0 為基準的起始列索引。

endRow int

The zero-based inclusive end row index. / 採 0 為基準且包含在內的結束列索引。