Version

DisplayChars Property

A collection of the display characters used in the control.
Syntax
'Declaration
 
Public ReadOnly Property DisplayChars As Infragistics.Win.UltraWinMaskedEdit.DisplayCharsCollection
public Infragistics.Win.UltraWinMaskedEdit.DisplayCharsCollection DisplayChars {get;}
Example
Following code shows how to access each mask character in the masked edit. It sets different color on each DisplayChar in the masked edit.

Imports Infragistics.Shared
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinGrid

  Private Sub Button3_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button3.Click

      ' Following code loops through all the display chars and sets different
      ' foreground color on each character.
      Me.ultraMaskedEdit1.InputMask = "$ nn,nnn.nn"
      Me.ultraMaskedEdit1.Value = 99999.99

      Dim i As Integer
      For i = 0 To Me.ultraMaskedEdit1.DisplayChars.Count - 1
          Dim dc As DisplayCharBase = Me.ultraMaskedEdit1.DisplayChars(i)

          Dim intensity As Integer = i * 255 / Me.ultraMaskedEdit1.DisplayChars.Count
          dc.Appearance.ForeColor = Color.FromArgb(intensity, 0, 0)
      Next
  End Sub
using Infragistics.Shared;
using Infragistics.Win;
using Infragistics.Win.UltraWinGrid;
using System.Diagnostics;

private void button3_Click(object sender, System.EventArgs e)
{
	// Following code loops through all the display chars and sets different
	// foreground color on each character.
	this.ultraMaskedEdit1.InputMask = "$ nn,nnn.nn";
	this.ultraMaskedEdit1.Value = 99999.99m;
	
	for ( int i = 0; i < this.ultraMaskedEdit1.DisplayChars.Count; i++ )
	{
		DisplayCharBase dc = this.ultraMaskedEdit1.DisplayChars[i];

		int intensity = i * 255 / this.ultraMaskedEdit1.DisplayChars.Count;
		dc.Appearance.ForeColor = Color.FromArgb( intensity, 0, 0 );
	}
}
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