Class FormatSectionCollection
Class used for Section Collection.
Inheritance
Implements
Inherited Members
Namespace: Syncfusion.XlsIO.FormatParser
Assembly: Syncfusion.XlsIO.Portable.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. |
System.Object | parent | Represents parent object. |
System.Collections.Generic.List<FormatTokenBase> | arrTokens | List to parse. |
Methods
ApplyFormat(Double, Boolean)
Applies format to the value.
Declaration
public string ApplyFormat(double value, bool bShowReservedSymbols)
Parameters
Type | Name | Description |
---|---|---|
System.Double | value | Value to apply format to. |
System.Boolean | bShowReservedSymbols | Indicates whether to show reserved symbols. |
Returns
Type | Description |
---|---|
System.String | String representation of the value. |
ApplyFormat(String, Boolean)
Applies format to the value.
Declaration
public string ApplyFormat(string value, bool bShowReservedSymbols)
Parameters
Type | Name | Description |
---|---|---|
System.String | value | Value to apply format to. |
System.Boolean | bShowReservedSymbols | Indicates whether to show reserved symbols. |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.Object | parent | Represents parent object. |
Returns
Type | Description |
---|---|
System.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 |
---|---|---|
System.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 |
---|---|---|
System.String | value | Value to get format type for. |
Returns
Type | Description |
---|---|
ExcelFormatType | Format type for the specified value. |