Set default font for desktop.grid

Hi

I am using Desktop.grid with vb.net.

How do I set the default font for the grid at run time?

Regards

Bob Hamill

Hi Bob,

We will add this feature (Setting Default Font for the GridDesktop) soon. Currently you may specify the font with attributes on cells.

E.g,

Dim sheet As Aspose.Grid.Desktop.Worksheet = GridDesktop1.Worksheets(0)
Dim cell As Aspose.Grid.Desktop.GridCell
Dim myfont As System.Drawing.Font = New Font("Century", 12, FontStyle.Bold)
Dim r, c As Integer
For r = 0 To 30
For c = 0 To 10
cell = sheet.Cells(r, c)
cell.SetFont(myfont)


Next
Next

Thank you.