Skip to main content

FormatInfo Members

Provides formatting settings.

Constructors

Name Description
FormatInfo() Creates an instance of the FormatInfo class.
FormatInfo(IComponentLoading, IViewBagOwner, String) Initializes a new instance of the FormatInfo class with the specified settings.
FormatInfo(IComponentLoading) Initializes a new instance of the FormatInfo class with the specified settings.
FormatInfo(IViewBagOwner, String) Initializes a new instance of the FormatInfo class.

Properties

Name Description
AlwaysUseThreadFormat static Gets or sets whether a value for the FormatInfo.Format property should be determined each time the property is accessed.
Empty static Gets a FormatInfo object with default settings.
Format Gets or sets the IFormatProvider object which specifies how values should be formatted.
FormatString Gets the pattern for formatting values.
FormatType Gets or sets the type of formatting specified by the current FormatInfo object.
IsEmpty Tests whether properties of the current object are set to default values.

Methods

Name Description
Assign(FormatInfo) Copies properties of the specified FormatInfo object to the current object.
Equals(Object, Object) static Determines whether the specified object instances are considered equal. Inherited from Object.
Equals(Object) Determines whether the specified object is equal to the current object. Inherited from Object.
GetDisplayText(Object) Gets the value formatted according to the format pattern and using the format provider settings.
GetFormatString() Returns the actual format string.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
IsEquals(FormatInfo) Compares properties of the current object with settings of the specified FormatInfo object.
LockParse() The method supports the internal .NET infrastructure and you must not call it from your code.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
OnEndDeserializing(String) This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
OnEndSerializing() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
OnStartDeserializing(LayoutAllowEventArgs) This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
OnStartSerializing() This member supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Parse() Performs actions when the FormatInfo.FormatType property changes.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
Reset() Reverts properties of the current object to default values.
ResetCache() static
ShouldSerialize() Tests whether the FormatInfo object should be persisted.
ToString() Returns a string that represents the current object.
UnlockParse() The method supports the internal .NET infrastructure and you must not call it from your code.

Events

Name Description
Changed Occurs on changing properties of the current FormatInfo class object.
See Also