DecimalFormat 类

定义

[Android.Runtime.Register("android/icu/text/DecimalFormat", ApiSince=24, DoNotGenerateAcw=true)]
public class DecimalFormat : Android.Icu.Text.NumberFormat
[<Android.Runtime.Register("android/icu/text/DecimalFormat", ApiSince=24, DoNotGenerateAcw=true)>]
type DecimalFormat = class
    inherit NumberFormat
继承
派生
属性

注解

Android 平台文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

构造函数

DecimalFormat()
DecimalFormat(IntPtr, JniHandleOwnership)
DecimalFormat(String)
DecimalFormat(String, DecimalFormatSymbols)
DecimalFormat(String, DecimalFormatSymbols, CurrencyPluralInfo, NumberFormatStyles)

字段

Accountingcurrencystyle
已过时.
(继承自 NumberFormat)
Cashcurrencystyle
已过时.
(继承自 NumberFormat)
Currencystyle
已过时.
(继承自 NumberFormat)
FractionField
已过时.
(继承自 NumberFormat)
IntegerField
已过时.
(继承自 NumberFormat)
Integerstyle
已过时.
(继承自 NumberFormat)
Isocurrencystyle
已过时.
(继承自 NumberFormat)
MinimumGroupingDigitsAuto
MinimumGroupingDigitsMin2
Numberstyle
已过时.
(继承自 NumberFormat)
PadAfterPrefix
PadAfterSuffix
PadBeforePrefix
PadBeforeSuffix
Percentstyle
已过时.
(继承自 NumberFormat)
Pluralcurrencystyle
已过时.
(继承自 NumberFormat)
Scientificstyle
已过时.
(继承自 NumberFormat)
Standardcurrencystyle
已过时.
(继承自 NumberFormat)

属性

Class

返回此 Object的运行时类。

(继承自 Object)
Currency (继承自 NumberFormat)
CurrencyPluralInfo
CurrencyUsage
DecimalFormatSymbols
DecimalPatternMatchRequired
DecimalSeparatorAlwaysShown
ExponentSignAlwaysShown
FormatWidth
GroupingSize
GroupingUsed (继承自 NumberFormat)
Handle

基础 Android 实例的句柄。

(继承自 Object)
JniIdentityHashCode (继承自 Object)
JniPeerMembers
MathContext
MathContextICU
MaximumFractionDigits (继承自 NumberFormat)
MaximumIntegerDigits (继承自 NumberFormat)
MaximumSignificantDigits
MinimumExponentDigits
MinimumFractionDigits (继承自 NumberFormat)
MinimumGroupingDigits
MinimumIntegerDigits (继承自 NumberFormat)
MinimumSignificantDigits
Multiplier
NegativePrefix
NegativeSuffix
PadCharacter
PadPosition
ParseBigDecimal
ParseCaseSensitive
ParseIntegerOnly (继承自 NumberFormat)
ParseMaxDigits
ParseNoExponent
ParseStrict (继承自 NumberFormat)
PeerReference (继承自 Object)
PositivePrefix
PositiveSuffix
RoundingIncrement
RoundingMode (继承自 NumberFormat)
ScientificNotation
SecondaryGroupingSize
SignAlwaysShown
ThresholdClass
ThresholdType

方法

ApplyLocalizedPattern(String)
ApplyPattern(String)
AreSignificantDigitsUsed()
Clone()

创建并返回此对象的副本。

(继承自 _Format)
Dispose() (继承自 Object)
Dispose(Boolean) (继承自 Object)
Equals(Object)

指示其他对象是否“等于”此对象。

(继承自 Object)
Format(BigDecimal) (继承自 NumberFormat)
Format(BigDecimal) (继承自 NumberFormat)
Format(BigDecimal, StringBuffer, FieldPosition)
Format(BigDecimal, StringBuffer, FieldPosition)
Format(BigInteger) (继承自 NumberFormat)
Format(BigInteger, StringBuffer, FieldPosition)
Format(CurrencyAmount) (继承自 NumberFormat)
Format(CurrencyAmount, StringBuffer, FieldPosition) (继承自 NumberFormat)
Format(Double) (继承自 NumberFormat)
Format(Double, StringBuffer, FieldPosition)
Format(Int64) (继承自 NumberFormat)
Format(Int64, StringBuffer, FieldPosition)
Format(Object)

设置对象的格式以生成字符串。

(继承自 _Format)
Format(Object, StringBuffer, FieldPosition) (继承自 NumberFormat)
FormatToCharacterIterator(Object)

设置生成 . 的对象 AttributedCharacterIterator的格式。

(继承自 _Format)
GetContext(DisplayContext+Type) (继承自 NumberFormat)
GetHashCode()

返回对象的哈希代码值。

(继承自 Object)
JavaFinalize()

当垃圾回收确定不再引用该对象时,由对象上的垃圾回收器调用。

(继承自 Object)
Notify()

唤醒正在等待此对象的监视器的单个线程。

(继承自 Object)
NotifyAll()

唤醒正在等待此对象的监视器的所有线程。

(继承自 Object)
Parse(String) (继承自 NumberFormat)
Parse(String, ParsePosition)
ParseCurrency(ICharSequence, ParsePosition) (继承自 NumberFormat)
ParseCurrency(String, ParsePosition) (继承自 NumberFormat)
ParseObject(String)

分析给定字符串开头的文本以生成对象。

(继承自 _Format)
ParseObject(String, ParsePosition) (继承自 NumberFormat)
SetContext(DisplayContext) (继承自 NumberFormat)
SetHandle(IntPtr, JniHandleOwnership)

设置 Handle 属性。

(继承自 Object)
SetRoundingIncrement(BigDecimal)
SetRoundingIncrement(Double)
SetSignificantDigitsUsed(Boolean)
ToArray<T>() (继承自 Object)
ToLocalizedPattern()
ToPattern()
ToString()

返回对象的字符串表示形式。

(继承自 Object)
UnregisterFromRuntime() (继承自 Object)
Wait()

使当前线程等待,直到唤醒它,通常是通过 em 通知/em> 或 <em>interrupted</em>。<><

(继承自 Object)
Wait(Int64)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)
Wait(Int64, Int32)

使当前线程等待直到唤醒,通常是通过 <em>通知</em> 或 <em interrupted</em>>,或直到经过一定数量的实时。

(继承自 Object)

显式接口实现

IJavaPeerable.Disposed() (继承自 Object)
IJavaPeerable.DisposeUnlessReferenced() (继承自 Object)
IJavaPeerable.Finalized() (继承自 Object)
IJavaPeerable.JniManagedPeerState (继承自 Object)
IJavaPeerable.SetJniIdentityHashCode(Int32) (继承自 Object)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (继承自 Object)
IJavaPeerable.SetPeerReference(JniObjectReference) (继承自 Object)

扩展方法

JavaCast<TResult>(IJavaObject)

执行 Android 运行时检查的类型转换。

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

适用于