Class Format
Represents the format of a value.
Inheritance
System.Object
Format
Assembly: DRIT.Spreadsheet.dll
public abstract class Format : object
Constructors
Declaration
protected Format(string code)
Parameters
Type |
Name |
Description |
System.String |
code |
|
Fields
Declaration
Field Value
Type |
Description |
System.String |
|
Properties
Get the category of the format
Declaration
public abstract FormatCategory Category { get; }
Property Value
Get the code of the format. The code is a string representation of the format used to serialize to file.
Declaration
public string Code { get; }
Property Value
Type |
Description |
System.String |
|
Methods
Indicates whether an object can be formatted by the current format
Declaration
public abstract bool CanFormat(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override sealed bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Returns the codor used to display a value. If no
Declaration
public DrawingColor GetColor(object value)
Parameters
Type |
Name |
Description |
System.Object |
value |
|
Returns
Declaration
public override sealed int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Converts a string to a format.
Declaration
public static Format Parse(string formatCode)
Parameters
Type |
Name |
Description |
System.String |
formatCode |
A string containing the code of the format to convert
|
Returns
Operators
SJE 22-07-2013 comparison operators between formats
Declaration
public static bool operator>(Format a, Format b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
SJE 22-07-2013 comparison operators between formats
Declaration
public static bool operator <(Format a, Format b)
Parameters
Returns
Type |
Description |
System.Boolean |
|