Back to Devexpress

ObjectFormatter Class

expressappframework-devexpress-dot-persistent-dot-base-f0c7547f.md

latest2.1 KB
Original Source

ObjectFormatter Class

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.

Namespace : DevExpress.Persistent.Base

Assembly : DevExpress.ExpressApp.v25.2.dll

NuGet Package : DevExpress.ExpressApp

Declaration

csharp
public class ObjectFormatter :
    ICustomFormatter,
    IFormatProvider
vb
Public Class ObjectFormatter
    Implements ICustomFormatter,
               IFormatProvider

Remarks

The ObjectFormatter is an auxiliary class that exposes the ObjectFormatter.Format method. This method can be used to create calculated properties in persistent classes. It takes an object and a string that contains format items. The method treats all the format items as the property names of the object. It replaces all the format items in the passed string with property values of the passed object.

Inheritance

Object ObjectFormatter

See Also

ObjectFormatter Members

Format

EmptyEntriesMode

Change the Format Used for the FullAddress and FullName Properties

DevExpress.Persistent.Base Namespace