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
 
<TypeConverterAttribute(Syncfusion.Styles.StyleInfoBaseConverter)>
<EditorAttribute(Syncfusion.Windows.Forms.Grid.GridFontInfoEditor, System.Drawing.Design.UITypeEditor)>
<RefreshPropertiesAttribute(RefreshProperties.Repaint)>
Public Class GridFontInfo 
   Inherits GridStyleInfoSubObject
   Implements Syncfusion.Styles.IStyleInfo, Syncfusion.Styles.IStyleInfoSubObject 
'Usage
 
Dim instance As GridFontInfo
[TypeConverter(Syncfusion.Styles.StyleInfoBaseConverter)]
[Editor(Syncfusion.Windows.Forms.Grid.GridFontInfoEditor, System.Drawing.Design.UITypeEditor)]
[RefreshProperties(RefreshProperties.Repaint)]
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.3460.0.26

See Also