'宣言 Public Property Bold As DefaultableBoolean
public DefaultableBoolean Bold {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; }