Class CustomFormat
Represents a format that uses the Format string to display values.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
CustomFormat
Inherited Members
Namespace: FastReport.Olap.Format
Assembly: FastReport.Olap.dll
Syntax
public class CustomFormat : FormatBase, IComponent, IDisposable
Constructors
CustomFormat()
Initializes a new instance of the CustomFormat class with default settings.
Declaration
public CustomFormat()
Properties
Format
Gets or sets a format string.
Declaration
public string Format { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
Default format is "G". For example, if you want to format a date, use the following format string: "MM/dd/yyyy". See the System.String.Format method for list of possible format strings.
Methods
Clone()
Creates exact copy of this format.
Declaration
public override FormatBase Clone()
Returns
Type | Description |
---|---|
FormatBase | The copy of this format. |
Overrides
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj |
Returns
Type | Description |
---|---|
System.Boolean |
Overrides
System.Object.Equals(System.Object)
FormatValue(Object)
Formats the specified value.
Declaration
public override 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. |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
Load(XmlItem)
Declaration
public override void Load(XmlItem item)
Parameters
Type | Name | Description |
---|---|---|
XmlItem | item |
Overrides
Save(XmlItem)
Declaration
public override void Save(XmlItem item)
Parameters
Type | Name | Description |
---|---|---|
XmlItem | item |