Table of Contents

Class ValidateNumberFormatter

Namespace
Wpf.Ui.Controls
Assembly
Wpf.Ui.dll

Base nubmer formatter that uses default format specifier and CultureInfo that represents the culture used by the current thread.

public class ValidateNumberFormatter : INumberFormatter, INumberParser
Inheritance
ValidateNumberFormatter
Implements
Inherited Members

Methods

FormatDouble(double?)

Returns a string representation of a double value.

public string FormatDouble(double? value)

Parameters

value double?

Returns

string

FormatInt(int?)

Returns a string representation of an int value.

public string FormatInt(int? value)

Parameters

value int?

Returns

string

FormatUInt(uint?)

Returns a string representation of a uint value.

public string FormatUInt(uint? value)

Parameters

value uint?

Returns

string

ParseDouble(string?)

Attempts to parse a string representation of a double numeric value.

public double? ParseDouble(string? value)

Parameters

value string

Returns

double?

ParseInt(string?)

Attempts to parse a string representation of an int numeric value.

public int? ParseInt(string? value)

Parameters

value string

Returns

int?

ParseUInt(string?)

Attempts to parse a string representation of an uint numeric value.

public uint? ParseUInt(string? value)

Parameters

value string

Returns

uint?