Table of Contents

Class Sheet.CreateSheetBuilder

Namespace
Smartsheet.Api.Models
Assembly
smartsheet-csharp-sdk.dll

A convenience class to make a Sheet object with the necessary fields to create the sheet by posting it to Smartsheet.

public class Sheet.CreateSheetBuilder
Inheritance
Sheet.CreateSheetBuilder
Inherited Members

Constructors

CreateSheetBuilder(string, IList<Column>)

Sets the required properties for creating a Sheet.

public CreateSheetBuilder(string name, IList<Column> columns)

Parameters

name string

the name of the Sheet, need not be unique

columns IList<Column>

list of columns

Methods

Build()

Creates a sheet by using the values from setters in this builder.

public Sheet Build()

Returns

Sheet

the sheet

GetColumns()

Returns the list of Columns.

public IList<Column> GetColumns()

Returns

IList<Column>

the Columns

GetName()

Returns the Name for the sheet.

public string GetName()

Returns

string

the Name

SetColumns(IList<Column>)

Sets the Columns for the sheet being created.

public Sheet.CreateSheetBuilder SetColumns(IList<Column> columns)

Parameters

columns IList<Column>

The Columns to create with this sheet.

Returns

Sheet.CreateSheetBuilder

the creates the builder

SetName(string)

Sets the Name for the sheet being created.

public Sheet.CreateSheetBuilder SetName(string name)

Parameters

name string

The Name for the sheet being created.

Returns

Sheet.CreateSheetBuilder

the creates the builder