Infragistics(R) NetAdvantage(R) Windows Forms
Italic Property
See Also  Example E-mail your feedback on this topic.
Infragistics.Win Namespace > FontData Class : Italic Property

Gets/sets whether to make the font italic

Syntax

Visual Basic (Declaration) 
Public Property Italic As DefaultableBoolean
C# 
public DefaultableBoolean Italic {get; set;}

Example

This sample sets the FontData associated properties of an Appearance object.

Visual BasicCopy 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;

}

Remarks

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'.

See Also