Class FormatBase
Base class for all formats.
Inheritance
System.Object
FormatBase
Implements
Namespace: FastReport.Format
Assembly: FastReport.Base.dll
Syntax
public abstract class FormatBase : IFRSerializable
Remarks
The format is used to format expression value in a TextObject object.
Properties
Name
Gets the short format name (e.g. without a "Format" suffix).
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Clone()
Creates exact copy of this format.
Declaration
public abstract FormatBase Clone()
Returns
Type | Description |
---|---|
FormatBase | The copy of this format. |
Deserialize(FRReader)
Deserializes the object.
Declaration
public void Deserialize(FRReader reader)
Parameters
Type | Name | Description |
---|---|---|
FRReader | reader | Reader object. |
FormatValue(Object)
Formats the specified value.
Declaration
public abstract string FormatValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | The value to format. |
Returns
Type | Description |
---|---|
System.String | The string that represents the formatted value. |
Serialize(FRWriter)
Serializes the object.
Declaration
public void Serialize(FRWriter writer)
Parameters
Type | Name | Description |
---|---|---|
FRWriter | writer | Writer object. |