INumberBoxNumberFormatter
trait · ferroui-controls · v0.5.0
trait INumberBoxNumberFormatter
Formats the value of a NumberBox and parses its text (WinUI's NumberFormatter, an
INumberFormatter2 that is also an INumberParser).
Deviation (docs/porting/winui-controls.md, Input): WinUI's default formatter is the regional
DecimalFormatter of the user; the port's default is
InvariantNumberBoxNumberFormatter, and an application supplies a regional one.
Members
format_double
fn format_double(self: &Self, value: f64) -> String
The text of value (INumberFormatter2::FormatDouble).
parse_double
fn parse_double(self: &Self, text: &str) -> Option<f64>
The number text is, or None (INumberParser::ParseDouble).
Trait implementations
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.