This documentation is archived and is not being maintained.

StringFormat Members

StringFormat overview

Public Constructors

public constructorStringFormat Constructor Overloaded. Initializes a new StringFormat object.

Public Properties

public propertyAlignment Gets or sets text alignment information.
public propertyDigitSubstitutionLanguage Gets or sets the language that is used when local digits are substituted for western digits.
public propertyDigitSubstitutionMethod Gets or sets the method to be used for digit substitution.
public propertyFormatFlags Gets or sets a StringFormatFlags enumeration that contains formatting information.
public propertystatic (Shared in Visual Basic)GenericDefault Gets a generic default StringFormat object.
public propertystatic (Shared in Visual Basic)GenericTypographic Gets a generic typographic StringFormat object.
public propertyHotkeyPrefix Gets or sets the HotkeyPrefix object for this StringFormat object.
public propertyLineAlignment Gets or sets the line alignment.
public propertyTrimming Gets or sets the StringTrimming enumeration for this StringFormat object.

Public Methods

public methodClone Creates an exact copy of this StringFormat object.
public methodCreateObjRef (inherited from MarshalByRefObject) Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
public methodDispose Releases all resources used by this StringFormat object.
public methodEquals (inherited from Object) Overloaded. Determines whether two Object instances are equal.
public methodGetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
public methodGetLifetimeService (inherited from MarshalByRefObject) Retrieves the current lifetime service object that controls the lifetime policy for this instance.
public methodGetTabStops Gets the tab stops for this StringFormat object.
public methodGetType (inherited from Object) Gets the Type of the current instance.
public methodInitializeLifetimeService (inherited from MarshalByRefObject) Obtains a lifetime service object to control the lifetime policy for this instance.
public methodSetDigitSubstitution Specifies the language and method to be used when local digits are substituted for western digits.
public methodSetMeasurableCharacterRanges Specifies an array of CharacterRange structures that represent the ranges of characters measured by a call to the Graphics.MeasureCharacterRanges method.
public methodSetTabStops Sets tab stops for this StringFormat object.
public methodToString Overridden. Converts this StringFormat object to a human-readable string.

Protected Methods

protected methodFinalize Overridden. Cleans up Windows resources for this StringFormat.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.

See Also

StringFormat Class | System.Drawing Namespace