Interface ICustomParser

Interface ICustomParser

Namespace: Aspose.Cells
Assembly: Aspose.Cells.dll (25.2.0)

Allows users to add their custom value parser for parsing string values to other proper cell value object.

public interface ICustomParser

Methods

GetFormat()

Gets the formatting pattern corresponding to the parsed value by last invocation of Aspose.Cells.ICustomParser.ParseObject(System.String).

string GetFormat()

Returns

string

Remarks

The returned formatting pattern may be used to format corresponding cell(set to Style.Custom for the cell).

ParseObject(string)

Parses given string to proper value object.

object ParseObject(string value)

Parameters

value string

The string value to be parsed

Returns

object

Parsed value object from given string. If given string cannot be parsed to proper value object, returns null.