StringFormat.GenericDefault Property

 

Gets a generic default StringFormat object.

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

public static StringFormat GenericDefault { get; }

Property Value

Type: System.Drawing.StringFormat

The generic default StringFormat object.

The following table shows initial property values for a generic default instance of the StringFormat class.

Property

Initial Value

FormatFlags

0

Alignment

Near

LineAlignment

Near

Trimming

Character

HotkeyPrefix

None

DigitSubstitutionMethod

User

DigitSubstitutionLanguage

0

If you make changes to the StringFormat object returned from the GenericDefault property, these changes persist, and future calls to the GenericDefault property reflects these changes.

.NET Framework
Available since 1.1
Return to top
Show: