'Declaration Public ReadOnly Property Appearances As Infragistics.Win.AppearancesCollection
public Infragistics.Win.AppearancesCollection Appearances {get;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinMaskedEdit Private Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button1.Click ' Add appearances to Appearances collection. Here "A1" is the key of the new ' appearance. Dim appearance As Infragistics.Win.Appearance = Me.ultraMaskedEdit1.Appearances.Add("A1") ' Set up the appearance. appearance.BackColor = Color.Aqua appearance.BackColor2 = Color.Maroon appearance.ForeColor = Color.White appearance.BackGradientStyle = GradientStyle.Horizontal ' Assign the appearance to the masked edit's Appearance property. Access the ' appearance using the key that we used when we added it to the appearances ' collection. Me.ultraMaskedEdit1.Appearance = Me.ultraMaskedEdit1.Appearances("A1") End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinMaskedEdit; using System.Diagnostics; private void button1_Click(object sender, System.EventArgs e) { // Add appearances to Appearances collection. Here "A1" is the key of the new // appearance. Infragistics.Win.Appearance appearance = this.ultraMaskedEdit1.Appearances.Add( "A1" ); // Set up the appearance. appearance.BackColor = Color.Aqua; appearance.BackColor2 = Color.Maroon; appearance.ForeColor = Color.White; appearance.BackGradientStyle = GradientStyle.Horizontal; // Assign the appearance to the masked edit's Appearance property. Access the // appearance using the key that we used when we added it to the appearances // collection. this.ultraMaskedEdit1.Appearance = this.ultraMaskedEdit1.Appearances["A1"]; }
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