バージョン

FormatString プロパティ (UltraNumericEditorBase)

コントロールで使用される書式文字列を取得または設定します。
シンタックス
'宣言
 
Public Property FormatString As String
public string FormatString {get; set;}
使用例
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: $###.##";
		}
参照