Class Sheet.CreateSheetFromTemplateBuilder
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
A class to simplify the creation of a Sheet from another Sheet or another Template.
public class Sheet.CreateSheetFromTemplateBuilder
- Inheritance
-
Sheet.CreateSheetFromTemplateBuilder
- Inherited Members
Constructors
CreateSheetFromTemplateBuilder(string, long?)
Sets the required propeties for creating a Sheet from a Sheet or Template.
public CreateSheetFromTemplateBuilder(string name, long? fromId)
Parameters
name
stringthe name of the Sheet, need not be unique
fromId
long?the ID of the Sheet or Template from which to create the Sheet
Methods
Build()
Creates a sheet by using the values from setters in this builder.
public Sheet Build()
Returns
- Sheet
the sheet
GetFromId()
Gets the from Id.
public long? GetFromId()
Returns
- long?
the from Id
GetName()
Returns the Name for the sheet.
public string GetName()
Returns
- string
the Name
SetFromId(long?)
Set the from Id.
public Sheet.CreateSheetFromTemplateBuilder SetFromId(long? id)
Parameters
id
long?the Id
Returns
- Sheet.CreateSheetFromTemplateBuilder
the creates the from template or sheet builder
SetName(string)
Sets the Name for the sheet being created.
public Sheet.CreateSheetFromTemplateBuilder SetName(string name)
Parameters
name
stringThe Name for the sheet being created.
Returns
- Sheet.CreateSheetFromTemplateBuilder
the creates the from template or sheet builder