Table of Contents

Class FormatBase

Namespace: FastReport.Olap.Format
Assembly: FastCube.Core.dll

Base class for all formats.

public abstract class FormatBase : Component

Inheritance

objectMarshalByRefObjectComponentFormatBase

Derived

BooleanFormat, CurrencyFormat, CustomFormat, GeneralFormat, NumberFormat, PercentFormat

Remarks

The format is used to format expression value in a field object.

Properties

Name

Gets the short format name (e.g. without a "Format" suffix).

[Browsable(false)]
public string Name { get; }

Property Value

string

Methods

Clone()

Creates exact copy of this format.

public abstract FormatBase Clone()

Returns

FormatBase

The copy of this format.

FormatValue(object)

Formats the specified value.

public abstract string FormatValue(object value)

Parameters

value object

The value to format.

Returns

string

The string that represents the formatted value.

Load(XmlItem)

Loads format from XML

public abstract void Load(XmlItem item)

Parameters

item XmlItem

Save(XmlItem)

Saves format to XML

public abstract void Save(XmlItem item)

Parameters

item XmlItem