Class FormatSectionCollection
Class used for Section Collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.FormatParser
Assembly: Syncfusion.XlsIO.NET.dll
Syntax
public class FormatSectionCollection : CollectionBaseEx<FormatSection>, IList<FormatSection>, ICollection<FormatSection>, IEnumerable<FormatSection>, IEnumerable, IParentApplication, ICloneParent
Constructors
FormatSectionCollection(IApplication, object, List<FormatTokenBase>)
Initializes a new instance of the FormatSectionCollection class.
Declaration
public FormatSectionCollection(IApplication application, object parent, List<FormatTokenBase> arrTokens)
Parameters
| Type | Name | Description |
|---|---|---|
| IApplication | application | Represents current application. |
| object | parent | Represents parent object. |
| List<FormatTokenBase> | arrTokens | List to parse. |
Methods
ApplyFormat(double, bool)
Applies format to the value.
Declaration
public string ApplyFormat(double value, bool bShowReservedSymbols)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | Value to apply format to. |
| bool | bShowReservedSymbols | Indicates whether to show reserved symbols. |
Returns
| Type | Description |
|---|---|
| string | String representation of the value. |
ApplyFormat(string, bool)
Applies format to the value.
Declaration
public string ApplyFormat(string value, bool bShowReservedSymbols)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Value to apply format to. |
| bool | bShowReservedSymbols | Indicates whether to show reserved symbols. |
Returns
| Type | Description |
|---|---|
| string | String representation of the value. |
Clone(object)
Creates a new object that is a copy of the current instance.
Declaration
public override object Clone(object parent)
Parameters
| Type | Name | Description |
|---|---|---|
| object | parent | Represents parent object. |
Returns
| Type | Description |
|---|---|
| object | A new object that is a copy of this instance. |
Overrides
GetFormatType(double)
Returns format type for a specified value.
Declaration
public ExcelFormatType GetFormatType(double value)
Parameters
| Type | Name | Description |
|---|---|---|
| double | value | Value to get format type for. |
Returns
| Type | Description |
|---|---|
| ExcelFormatType | Format type for the specified value. |
GetFormatType(string)
Returns format type for a specified value.
Declaration
public ExcelFormatType GetFormatType(string value)
Parameters
| Type | Name | Description |
|---|---|---|
| string | value | Value to get format type for. |
Returns
| Type | Description |
|---|---|
| ExcelFormatType | Format type for the specified value. |