DataFormatterBase Class TIBCO Spotfire 7.9 API Reference
Abstract base class for formatters. Handles read-only state, cloning and formatting of invalid values.
Inheritance Hierarchy

SystemObject
  Spotfire.Dxp.Data.FormattersDataFormatterBase
    Spotfire.Dxp.Data.FormattersBooleanFormatter
    Spotfire.Dxp.Data.FormattersDateTimeFormatter
    Spotfire.Dxp.Data.FormattersNumberFormatter
    Spotfire.Dxp.Data.FormattersStringFormatter
    Spotfire.Dxp.Data.FormattersTimeSpanFormatter

Namespace: Spotfire.Dxp.Data.Formatters
Assembly: Spotfire.Dxp.Data (in Spotfire.Dxp.Data.dll) Version: 30.0.10915.3380 (30.0.10915.3380)
Syntax

C#
[SerializableAttribute]
[PersistenceVersionAttribute(10, 10)]
public abstract class DataFormatterBase : IDataFormatter, 
	ICloneable, ISerializable

The DataFormatterBase type exposes the following members.

Constructors

  NameDescription
Protected methodDataFormatterBase
Initializes a new instance of the DataFormatterBase class.
Top
Methods

  NameDescription
Public methodStatic memberAsReadOnly
Returns the given formatter if already read-only, otherwise a read-only copy.
Protected methodCheckReadOnly
Throws InvalidOperationException if the formatter is read-only. Do this check before setting a property.
Public methodClone
Returns a writable copy of this formatter.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Overrides ObjectEquals(Object).)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormat
Override this method to convert an object to a string value.
Public methodFormatInvalid
Formats an invalid value. If error is not null, the return value includes the "(error)" string, otherwise EmptyString is returned.
Public methodGetHashCode
Gets a hash code for the current Object.
(Overrides ObjectGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodParse
Override this method to convert a string value to an object.
Public methodTryParse
Converts a string representation to an object. A return value indicates whether the conversion succeeded or failed.
Top
Properties

  NameDescription
Public propertyCultureInfo
Gets or sets a CultureInfo object that defines the default formatting.
Public propertyEmptyString
Gets or sets the string used to indicate empty values. (FormatInvalid(String)).
Public propertyExactParse
Gets or sets a value indicating whether the format of the string representation must match the specified format exactly or not. Default is false.
Public propertyIsLocalized
Gets a value indicating whether this formatter is localized and always uses CultureInfo derived from the current running thread or not.
Public propertyIsReadOnly
Gets a value indicating whether the formatter is read-only or not.
Top
Version Information

Supported in: 7.9, 7.8, 7.7, 7.6, 7.5, 7.0, 6.5, 6.0, 5.5, 5.0
See Also

Reference