Version

FormatString Property (UltraNumericEditorBase)

Returns or sets the format string used by the control.
Syntax
'Declaration
 
Public Property FormatString As String
public string FormatString {get; set;}
Example
This example sets the FormatString property to the same value as the MaskInput property.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinEditors

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

        '	Set the FormatString property to the same value as the MaskInput property
        Me.UltraNumericEditor1.MaskInput = "Qty: nnn"
        Me.UltraNumericEditor1.FormatString = "Qty: ###"

        Me.UltraCurrencyEditor1.MaskInput = "Price: $nnn.nn"
        Me.UltraCurrencyEditor1.FormatString = "Price: $###.##"

    End Sub
using System.Diagnostics;
using Infragistics.Win;
using Infragistics.Win.UltraWinEditors;

		private void button1_Click(object sender, System.EventArgs e)
		{
			//	Set the FormatString property to the same value as the MaskInput property
			this.ultraNumericEditor1.MaskInput = "Qty: nnn";
			this.ultraNumericEditor1.FormatString = "Qty: ###";

			this.ultraCurrencyEditor1.MaskInput = "Price: $nnn.nn";
			this.ultraCurrencyEditor1.FormatString = "Price: $###.##";
		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also