'宣言 Public Property Underline As DefaultableBoolean
public DefaultableBoolean Underline {get; set;}
Imports Infragistics.Win Private Sub SetGridFont() Dim fd As FontData = Me.UltraGrid1.DisplayLayout.Appearance.FontData fd.Bold = DefaultableBoolean.True fd.Italic = DefaultableBoolean.True fd.Name = "Times New Roman" fd.Underline = DefaultableBoolean.True End Sub
using Infragistics.Win; private void SetGridFont() { FontData fd = this.ultraGrid1.DisplayLayout.Appearance.FontData; fd.Bold = DefaultableBoolean.True ; fd.Italic = DefaultableBoolean.True; fd.Name = "Times New Roman"; fd.Underline = DefaultableBoolean.True; }