Skip to main content
.NET Framework 4.5.2+

ObjectFormatter Members

Represents a string formatter. Exposes the static helper ObjectFormatter.Format method that replaces format items in the specified string with the property values of the specified object.

Constructors

Name Description
ObjectFormatter() Creates an instance of the ObjectFormatter class.
ObjectFormatter(ICaptionHelperProvider) Initializes a new instance of the ObjectFormatter class with specified settings.
ObjectFormatter(ICaptionHelper) Initializes a new instance of the ObjectFormatter class with specified settings.
ObjectFormatter(Boolean, ICaptionHelperProvider) Initializes a new instance of the ObjectFormatter class with specified settings.
ObjectFormatter(Boolean) Initializes a new instance of the ObjectFormatter class with specified settings.

Methods

Name Description
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.
Format(String, Object, ICaptionHelper) static
Format(String, Object, EmptyEntriesMode, ICaptionHelper) static
Format(String, Object, EmptyEntriesMode) static Replaces format items in the specified string with the values of the specified object’s properties. Allows you to specify the EmptyEntriesMode mode of processing the passed string.
Format(String, Object) static Replaces format items in the specified string with the values of the specified object’s properties. Uses the EmptyEntriesMode.Default mode of processing the passed string.
GetHashCode() Serves as the default hash function. Inherited from Object.
GetType() Gets the Type of the current instance. Inherited from Object.
MemberwiseClone() protected Creates a shallow copy of the current Object. Inherited from Object.
ReferenceEquals(Object, Object) static Determines whether the specified Object instances are the same instance. Inherited from Object.
ToString() Returns a string that represents the current object. Inherited from Object.

Events

Name Description
CustomFormatObject static Occurs when the ObjectFormatter.Format method is called. Allows you to perform the custom processing of the string passed to the Format method.
CustomGetValue static Occurs when the ObjectFormatter.Format method processes a format item. Allows you to provide a custom value that will replace the format item in the resulting string.
See Also