バージョン

MaskLiteralsAppearance プロパティ (UltraGridColumn)

セルでMaskInputが設定されている場合、またはUltraMaskedEditコントロールを使用している場合、編集モード時にこの外観がリテラル文字に適用されます。
シンタックス
'宣言
 
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;

}
参照