Class SheetBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
SheetBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class SheetBuilder : ControlBuilder
Constructors
SheetBuilder()
Declaration
SheetBuilder(List<Sheet>)
Declaration
public SheetBuilder(List<Sheet> collection)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Sheet> |
collection |
|
Methods
ActiveCell(String)
Specifies active cell within selectedRange
in the sheet.
Declaration
public SheetBuilder ActiveCell(string activeCell)
Parameters
Type |
Name |
Description |
System.String |
activeCell |
|
Returns
Add()
Declaration
ColCount(Int32)
Defines the number of columns to be rendered in the sheet.
Declaration
public SheetBuilder ColCount(int colCount)
Parameters
Type |
Name |
Description |
System.Int32 |
colCount |
|
Returns
Columns(Action<ColumnBuilder>)
Declaration
public SheetBuilder Columns(Action<ColumnBuilder> columns)
Parameters
Returns
Columns(List<Column>)
Configures column and its properties for the sheet.
Declaration
public SheetBuilder Columns(List<Column> columns)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Column> |
columns |
|
Returns
Declaration
public SheetBuilder ConditionalFormats(Action<ConditionalFormatBuilder> conditionalFormats)
Parameters
Returns
Specifies the conditional formatting for the sheet.
Declaration
public SheetBuilder ConditionalFormats(List<ConditionalFormat> conditionalFormats)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<ConditionalFormat> |
conditionalFormats |
|
Returns
FrozenColumns(Int32)
Gets or sets the number of frozen columns.
Declaration
public SheetBuilder FrozenColumns(int frozenColumns)
Parameters
Type |
Name |
Description |
System.Int32 |
frozenColumns |
|
Returns
FrozenRows(Int32)
Gets or sets the number of frozen rows.
Declaration
public SheetBuilder FrozenRows(int frozenRows)
Parameters
Type |
Name |
Description |
System.Int32 |
frozenRows |
|
Returns
Index(Int32)
Specifies index of the sheet. Based on the index, sheet properties are applied.
Declaration
public SheetBuilder Index(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
IsProtected(Boolean)
Specifies to protect the cells in the sheet.
Declaration
public SheetBuilder IsProtected(bool isProtected)
Parameters
Type |
Name |
Description |
System.Boolean |
isProtected |
|
Returns
Name(String)
Specifies the name of the sheet, the name will show in the sheet tabs.
Declaration
public SheetBuilder Name(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
PaneTopLeftCell(String)
Represents the freeze pane top left cell. Its default value would be based on the number of freeze rows and columns.
Declaration
public SheetBuilder PaneTopLeftCell(string paneTopLeftCell)
Parameters
Type |
Name |
Description |
System.String |
paneTopLeftCell |
|
Returns
Password(String)
Declaration
public SheetBuilder Password(string password)
Parameters
Type |
Name |
Description |
System.String |
password |
|
Returns
ProtectSettings(SpreadsheetProtectSettings)
Configures protect and its options.
Declaration
public SheetBuilder ProtectSettings(SpreadsheetProtectSettings protectSettings)
Parameters
Returns
ProtectSettings(Action<SpreadsheetProtectSettingsBuilder>)
Declaration
public SheetBuilder ProtectSettings(Action<SpreadsheetProtectSettingsBuilder> protectSettings)
Parameters
Returns
Ranges(Action<RangeBuilder>)
Declaration
public SheetBuilder Ranges(Action<RangeBuilder> ranges)
Parameters
Returns
Ranges(List<Range>)
Specifies the collection of range for the sheet.
Declaration
public SheetBuilder Ranges(List<Range> ranges)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Range> |
ranges |
|
Returns
RowCount(Int32)
Defines the number of rows to be rendered in the sheet.
Declaration
public SheetBuilder RowCount(int rowCount)
Parameters
Type |
Name |
Description |
System.Int32 |
rowCount |
|
Returns
Rows(Action<RowBuilder>)
Declaration
public SheetBuilder Rows(Action<RowBuilder> rows)
Parameters
Type |
Name |
Description |
System.Action<RowBuilder> |
rows |
|
Returns
Rows(List<Row>)
Configures row and its properties for the sheet.
Declaration
public SheetBuilder Rows(List<Row> rows)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<Row> |
rows |
|
Returns
SelectedRange(String)
Specifies selected range in the sheet.
Declaration
public SheetBuilder SelectedRange(string selectedRange)
Parameters
Type |
Name |
Description |
System.String |
selectedRange |
|
Returns
ShowGridLines(Boolean)
Specifies to show / hide grid lines in the sheet.
Declaration
public SheetBuilder ShowGridLines(bool showGridLines)
Parameters
Type |
Name |
Description |
System.Boolean |
showGridLines |
|
Returns
Specifies to show / hide column and row headers in the sheet.
Declaration
public SheetBuilder ShowHeaders(bool showHeaders)
Parameters
Type |
Name |
Description |
System.Boolean |
showHeaders |
|
Returns
StandardHeight(Double)
Represents the standard height of the sheet.
Declaration
public SheetBuilder StandardHeight(double standardHeight)
Parameters
Type |
Name |
Description |
System.Double |
standardHeight |
|
Returns
State(SheetState)
Specifies the sheet visibility state. There must be at least one visible sheet in Spreadsheet.
Declaration
public SheetBuilder State(SheetState state)
Parameters
Returns
TopLeftCell(String)
Specified cell will be positioned at the upper-left corner of the sheet.
Declaration
public SheetBuilder TopLeftCell(string topLeftCell)
Parameters
Type |
Name |
Description |
System.String |
topLeftCell |
|
Returns
UsedRange(SpreadsheetUsedRange)
Defines the used range of the sheet.
Declaration
public SheetBuilder UsedRange(SpreadsheetUsedRange usedRange)
Parameters
Returns
UsedRange(Action<SpreadsheetUsedRangeBuilder>)
Declaration
public SheetBuilder UsedRange(Action<SpreadsheetUsedRangeBuilder> usedRange)
Parameters
Returns