Click or drag to resize

PercentFixedType Class

Localized message formatting class for a numeric value that represents a percentage with up to 2 digits after the dot regardless to the value scale.
Inheritance Hierarchy
SystemObject
  KSPDev.GUIUtils.TypeFormattersPercentFixedType

Namespace:  KSPDev.GUIUtils.TypeFormatters
Assembly:  KSPDev_Utils.1.0 (in KSPDev_Utils.1.0.dll) Version: 1.0 for KSP v1.6+
Syntax
C#
public sealed class PercentFixedType
Request Example View Source

The PercentFixedType type exposes the following members.

Constructors
  NameDescription
Public methodPercentFixedType
Constructs a precentage type object.
Top
Methods
  NameDescription
Public methodStatic memberCode exampleFormat
Formats the value into a human friendly string with a unit specification.
Public methodToString
Returns a string formatted as a human friendly percentage specification.
(Overrides ObjectToString.)
Top
Operators
Fields
  NameDescription
Public fieldStatic memberunitName
Suffix for the "percent" units (%).
Public fieldvalue
A wrapped numeric value.
Top
Remarks
Use it as a generic parameter when creating a LocalizableMessage descendants.
See Also