'Declaration Public Property MaskLiteralsAppearance As Infragistics.Win.AppearanceBase
public Infragistics.Win.AppearanceBase MaskLiteralsAppearance {get; set;}
Imports Infragistics.Shared Imports Infragistics.Win Imports Infragistics.Win.UltraWinGrid Private Sub Button18_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles button18.Click ' MaskLiteralsAppearance applies to the literals in text of a masked input cell. ' You can enable maked input in a column by setting that column's MaskInput property. Dim layout As UltraGridLayout = Me.ultraGrid1.DisplayLayout Dim band As UltraGridBand = layout.Bands(0) Dim column As UltraGridColumn = band.Columns(0) ' Set grid-wide MaskLiteralsAppearance by using the layout's Override. layout.Override.MaskLiteralsAppearance.ForeColor = Color.Blue ' You can override MaskLiteralsAppearance for a particular band by setting that ' band's Override.MaskLiteralsAppearance. band.Override.MaskLiteralsAppearance.ForeColor = Color.Red ' You can override above MaskLiteralsAppearance settings for a column by setting ' column's MaskLiteralsAppearance. column.MaskLiteralsAppearance.ForeColor = Color.Green End Sub
using Infragistics.Shared; using Infragistics.Win; using Infragistics.Win.UltraWinGrid; using System.Diagnostics; private void button18_Click(object sender, System.EventArgs e) { // MaskLiteralsAppearance applies to the literals in text of a masked input cell. // You can enable maked input in a column by setting that column's MaskInput property. UltraGridLayout layout = this.ultraGrid1.DisplayLayout; UltraGridBand band = layout.Bands[0]; UltraGridColumn column = band.Columns[0]; // Set grid-wide MaskLiteralsAppearance by using the layout's Override. layout.Override.MaskLiteralsAppearance.ForeColor = Color.Blue; // You can override MaskLiteralsAppearance for a particular band by setting that // band's Override.MaskLiteralsAppearance. band.Override.MaskLiteralsAppearance.ForeColor = Color.Red; // You can override above MaskLiteralsAppearance settings for a column by setting // column's MaskLiteralsAppearance. column.MaskLiteralsAppearance.ForeColor = Color.Green; }
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