Syncfusion.Grid.Windows
Members  Example 


GridFontInfo Class

Implements a Syncfusion.Styles.StyleInfoSubObjectBase object for font settings in a cell. Each font property of the cell can be configured individually.

Font properties that have not been initialized will inherit default values from a base style.

Object Model
GridFontInfo ClassGridFontInfo ClassStyleInfoIdentityBase ClassStyleInfoBase ClassStyleInfoProperty ClassStyleInfoStore ClassStyleInfoSubObjectIdentity Class
Syntax
'Declaration
 
<EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Syncfusion.Windows.Forms.Grid.GridFontInfoEditor, Syncfusion.Grid.Windows, Version=17.1460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")>
<TypeConverterAttribute("Syncfusion.Styles.StyleInfoBaseConverter, Syncfusion.Shared.Base, Version=17.1460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")>
Public Class GridFontInfo 
   Inherits GridStyleInfoSubObject
   Implements Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject 
'Usage
 
Dim instance As GridFontInfo
[Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="Syncfusion.Windows.Forms.Grid.GridFontInfoEditor, Syncfusion.Grid.Windows, Version=17.1460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")]
[TypeConverter("Syncfusion.Styles.StyleInfoBaseConverter, Syncfusion.Shared.Base, Version=17.1460.0.47, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89")]
public class GridFontInfo : GridStyleInfoSubObject, Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject  
Example
The following code changes font information for cells:
model[rowIndex, colIndex].Font.Facename = "Arial";
model[rowIndex, colIndex].Font.Bold = true;
Inheritance Hierarchy

System.Object
   Syncfusion.Design.ShouldSerializeBasedPersisterType
      Syncfusion.Styles.StyleInfoBase
         Syncfusion.Styles.StyleInfoSubObjectBase
            Syncfusion.Windows.Forms.Grid.GridStyleInfoSubObject
               Syncfusion.Windows.Forms.Grid.GridFontInfo

AssemblyVersion

Syncfusion.Grid.Windows: 17.1460.0.47

See Also