Class Format
Represents the format of a value.
Assembly: DRIT.Document.dll
public abstract class Format
Constructors
Initializes a new instance of the Format class.
Declaration
protected Format(string code)
Parameters
| Type |
Name |
Description |
| string |
code |
The code used by the operation.
|
Fields
Declaration
Field Value
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
Methods
Indicates whether an object can be formatted by the current format
Declaration
public abstract bool CanFormat(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Describes the format configuration.
Declaration
public override sealed bool Equals(object obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
The obj used by the operation.
|
Returns
| Type |
Description |
| bool |
The resulting value.
|
Overrides
Returns the codor used to display a value. If no
Declaration
public DrawingColor GetColor(object value)
Parameters
| Type |
Name |
Description |
| object |
value |
|
Returns
Describes the format configuration.
Declaration
public override sealed int GetHashCode()
Returns
| Type |
Description |
| int |
The resulting value.
|
Overrides
Converts a string to a format.
Declaration
public static Format Parse(string formatCode)
Parameters
| Type |
Name |
Description |
| string |
formatCode |
A string containing the code of the format to convert
|
Returns
Exceptions
Operators
SJE 22-07-2013 comparison operators between formats
Declaration
public static bool operator >(Format a, Format b)
Parameters
Returns
SJE 22-07-2013 comparison operators between formats
Declaration
public static bool operator <(Format a, Format b)
Parameters
Returns