-
Notifications
You must be signed in to change notification settings - Fork 0
0cc72e10 a321 398e 16ab 932f2862f9ba
Axel Kesseler edited this page Oct 3, 2019
·
2 revisions
Capacity entity provides functionality to calculate and format capacity strings.
System.Object
Plexdata.Converters.Entities.CapacityEntity
Namespace: Plexdata.Converters.Entities
Assembly: Plexdata.CapacityConverter (in Plexdata.CapacityConverter.dll) Version: 1.0.1
C#
public class CapacityEntity
The CapacityEntity type exposes the following members.
Name | Description | |
---|---|---|
CapacityEntity | Standard constructor with initial arguments. |
Name | Description | |
---|---|---|
Unit1 | Gets the first unit to be appended at results. | |
Unit2 | Gets the alternative unit to be appended at results. | |
Value | Gets the value to be used as divisor for result calculations. |
Name | Description | |
---|---|---|
AdjustDecimalDigits | Adjusts the number of decimal digits. | |
Calculate(Decimal) | Calculates the result by using the default number of decimal digits. | |
Calculate(Decimal, Int32) | Calculates the result by using provided number of decimal digits. | |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
Format(Decimal) | Formats provided value according to current settings. | |
Format(Decimal, Boolean) | Formats provided value according to current settings. | |
Format(Decimal, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, Int32) | Formats provided value according to current settings. | |
Format(Decimal, String) | Formats provided value according to current settings. | |
Format(Decimal, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, Boolean, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, Int32, Boolean) | Formats provided value according to current settings. | |
Format(Decimal, Int32, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, Int32, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Boolean) | Formats provided value according to current settings. | |
Format(Decimal, String, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32) | Formats provided value according to current settings. | |
Format(Decimal, Boolean, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, Int32, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, Int32, Boolean, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Boolean, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, Boolean) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, Int32, Boolean, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, Boolean, NumberFormatInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, Boolean, Boolean, CultureInfo) | Formats provided value according to current settings. | |
Format(Decimal, String, Int32, Boolean, Boolean, NumberFormatInfo) | Formats provided value according to current settings. | |
GetCalculate | Returns the default calculation behaviour. | |
GetCulture | Returns the default culture. | |
GetDecimals | Returns the default number of decimal digits. | |
GetFormatter() | Returns the default number formatter. | |
GetFormatter(CultureInfo) | Returns the number formatter based on provided culture. | |
GetFormatter(CultureInfo, Int32) | Returns the number formatter based on provided culture. | |
GetFormatter(NumberFormatInfo, Int32) | Returns a clone of provided formatter and adjusts its number of decimal digits accordingly. | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetIntercept | Returns the default intercept behaviour. | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetUnit() | Returns the default unit. | |
GetUnit(String) | Returns a valid unit to be used. | |
IsEqual | Determines whether provided unit is equal to one of the assigned units. | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string representation of current instance. (Overrides Object.ToString().) |
This class provides extended functionalities to calculate and format capacity strings. Such a capacity string consists of a number (automatically calculated or as is) followed by one of the pre-defined units or a user defined unit.
Plexdata Capacity Converter