Class SpreadsheetFormatBuilder<T>
Specifies the class for format builder.
Inheritance
System.Object
SpreadsheetFormatBuilder<T>
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Syncfusion.JavaScript
Assembly: Syncfusion.EJ.dll
Syntax
public class SpreadsheetFormatBuilder<T>
where T : class
Type Parameters
Name | Description |
---|---|
T |
Constructors
SpreadsheetFormatBuilder(Cell)
Initializes a new instance of the SpreadsheetFormatBuilder<T> with the specified cell.
Declaration
public SpreadsheetFormatBuilder(Cell cell)
Parameters
Type | Name | Description |
---|---|---|
Cell | cell | The cell using Cell object. |
Methods
DecimalPlaces(Int32)
Specifies the decimal places for cells.
Declaration
public SpreadsheetFormatBuilder<T> DecimalPlaces(int decimalPlaces)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | decimalPlaces | The decimal places for cells. |
Returns
Type | Description |
---|---|
SpreadsheetFormatBuilder<T> |
FormatStr(String)
Specifies format string for cells.
Declaration
public SpreadsheetFormatBuilder<T> FormatStr(string formatStr)
Parameters
Type | Name | Description |
---|---|---|
System.String | formatStr | The format string for cells. |
Returns
Type | Description |
---|---|
SpreadsheetFormatBuilder<T> |
ThousandSeparator()
Specifies the thousand seperator as true for cells.
Declaration
public SpreadsheetFormatBuilder<T> ThousandSeparator()
Returns
Type | Description |
---|---|
SpreadsheetFormatBuilder<T> |
ThousandSeparator(Boolean)
Specifies to indicate whether thousand seperator is enable or not for cells.
Declaration
public SpreadsheetFormatBuilder<T> ThousandSeparator(bool thousandSeparator)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | thousandSeparator | true if the thousand separator is enabled; otherwise, false. |
Returns
Type | Description |
---|---|
SpreadsheetFormatBuilder<T> |
Type(String)
Specifies the type of format for cells.
Declaration
public SpreadsheetFormatBuilder<T> Type(string type)
Parameters
Type | Name | Description |
---|---|---|
System.String | type | The type of format. |
Returns
Type | Description |
---|---|
SpreadsheetFormatBuilder<T> |