| Visual Basic (Declaration) | |
|---|---|
Public Property Italic As DefaultableBoolean | |
| C# | |
|---|---|
public DefaultableBoolean Italic {get; set;} | |
This sample sets the FontData associated properties of an Appearance object.
| Visual Basic | Copy Code |
|---|---|
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 | |
| C# | Copy Code |
|---|---|
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; } | |
This property is not serialized directly at design time. Instead the ItalicAsString property is serialized as a string with a setting of 'True, 'False' or 'Default'.