Class CustomFormat
Represents a format that uses the Format string to display values.
Implements
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: FastReport.Format
Assembly: FastReport.OpenSource.dll
Syntax
public class CustomFormat : FormatBase, IFRSerializable
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()