Show / Hide Table of Contents

Class FormatBase

Base class for all formats.

Inheritance
System.Object
FormatBase
BooleanFormat
CurrencyFormat
CustomFormat
GeneralFormat
NumberFormat
PercentFormat
Implements
IFRSerializable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Format
Assembly: FastReport.OpenSource.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.

Implements

IFRSerializable
Back to top Generated by DocFX