Class PercentFormat
Defines how percent values are formatted and displayed.
Inheritance
System.Object
System.MarshalByRefObject
System.ComponentModel.Component
PercentFormat
Assembly: FastReport.Olap.dll
public class PercentFormat : FormatBase, IComponent, IDisposable
Constructors
Initializes a new instance of the PercentFormat class with default settings.
Declaration
Properties
Gets or sets the number of decimal places to use in percent values.
Declaration
public int DecimalDigits { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Gets or sets the string to use as the decimal separator in percent values.
Declaration
public string DecimalSeparator { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the string that separates groups of digits to the left of the decimal in percent values.
Declaration
public string GroupSeparator { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the format pattern for negative percent values.
Declaration
public int NegativePattern { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Gets or sets the string to use as the percent symbol.
Declaration
public string PercentSymbol { get; set; }
Property Value
Type |
Description |
System.String |
|
Gets or sets the format pattern for positive percent values.
Declaration
public int PositivePattern { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Gets or sets a value that determines whether to use system locale settings to format a value.
Declaration
public bool UseLocale { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
Methods
Creates exact copy of this format.
Declaration
public override FormatBase Clone()
Returns
Type |
Description |
FormatBase |
The copy of this format.
|
Overrides
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)
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
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public override void Load(XmlItem item)
Parameters
Overrides
Declaration
public override void Save(XmlItem item)
Parameters
Overrides