Class OdfColumnCollection
- Namespace
- OdfKit.Spreadsheet
- Assembly
- OdfKit.dll
Indexes worksheet columns by position. 提供工作表欄的索引入口。
public sealed class OdfColumnCollection
- Inheritance
-
OdfColumnCollection
- Inherited Members
Properties
this[int]
Gets a column by index. 依索引取得欄。
public OdfSheetColumn this[int index] { get; }
Parameters
indexintThe zero-based column index. / 採 0 為基準的欄索引。
Property Value
- OdfSheetColumn
The specified column. / 指定欄。
Methods
Group(int, int)
Short overload of Group that accepts startColumn and endColumn; remaining optional parameters use defaults and forward to the full overload. 便利多載:提供 startColumn 與 endColumn;其餘可選參數使用預設值並轉呼叫最長 Group 多載。
public void Group(int startColumn, int endColumn)
Parameters
Group(int, int, bool)
Groups the specified column range so it can be expanded or collapsed. 將指定欄範圍設為可展開/收合的群組。
public void Group(int startColumn, int endColumn, bool collapsed)
Parameters
startColumnintThe zero-based start column index. / 採 0 為基準的起始欄索引。
endColumnintThe zero-based inclusive end column index. / 採 0 為基準且包含在內的結束欄索引。
collapsedboolWhether the group is collapsed by default. / 是否預設為收合狀態。
Ungroup(int, int)
Removes the group containing the specified column range and moves the columns back to the worksheet body. 移除包含指定欄範圍的群組,將欄移回工作表主體。
public void Ungroup(int startColumn, int endColumn)