The Font object encapsulates the attributes of a <FONT> tag. An instance of the Font object can be obtained via the properties Cell.Font and Caption.Font. Properties Bold Class Color Custom Face Italic Size Underlined Bold As Boolean (Read/Write) False by default. If set to True, adds the <B>...</B> tags around a value. Usage: VBScript Grid(2).Cell.Font.Bold = True XML <Cols Index="2"> <Cell> <Font Bold="True"/> </Cell> </Cols> Relevant Chapters 3 and all others. Class As String (Read/Write) Specifies a value for the CLASS attribute of a <FONT> tag. Usage: VBScript Grid(2).Header.Font.Class = "myclass" XML <Cols Index="2"> <Header> <Font Class="myclass"/> </Header> </Cols> Relevant Chapters N/A Color As String (Read/Write) Specifies a value for the COLOR attribute of a <FONT> tag. Usage: VBScript Grid("name").Header.Font.Color = "#000000" XML <Cols Index="name"> <Header> <Font Color="#000000"/> </Header> </Cols> Relevant Chapters 3 and all others. Custom As String (Read/Write) Specifies one or more custom attributes and their values for a <FONT> tag. Usage: VBScript Grid(2).Cell.Font.Custom = "myattr=""myvalue""" XML <Cols Index="2"> <Cell> <Font Custom="myattr="myvalue""/> </Cell> </Cols> Relevant Chapters N/A Face As String (Read/Write) Specifies a value for the FACE attribute of a <FONT> tag. This is the default property. Usage: VBScript Grid(8).Header.Font.Face = "Arial,Helvetica" XML <Cols Index="8"> <Header> <Font Face="Arial,Helvetica"/> </Header> </Cols> Relevant Chapters 3 and all others. Italic As Boolean (Read/Write) False by default. If set to True, adds the <I>...</I> tags around a value. Usage: VBScript Grid(2).Cell.Font.Italic = True XML <Cols Index="2"> <Cell> <Font Italic="True"/> </Cell> </Cols> Relevant Chapters N/A Size As String (Read/Write) Specifies a value for the SIZE attribute of a <FONT> tag. Usage: VBScript Grid.ColRange(2, 4).Cell.Font.Size = "1" XML <ColRange From="2" To="4"> <Cell> <Font Size="1"/> </Cell> </ColRange> Relevant Chapters 3 and all others. Underlined As Boolean (Read/Write) False by default. If set to True, adds the <U>...</U> tags around a value. Usage: VBScript Grid(2).Cell.Font.Underlined = True XML <Cols Index="2"> <Cell> <Font Underlined="True"/> </Cell> </Cols> Relevant Chapters N/A
An instance of the Font object can be obtained via the properties Cell.Font and Caption.Font.
Bold As Boolean (Read/Write) False by default. If set to True, adds the <B>...</B> tags around a value. Usage: VBScript Grid(2).Cell.Font.Bold = True XML <Cols Index="2"> <Cell> <Font Bold="True"/> </Cell> </Cols> Relevant Chapters 3 and all others. Class As String (Read/Write) Specifies a value for the CLASS attribute of a <FONT> tag. Usage: VBScript Grid(2).Header.Font.Class = "myclass" XML <Cols Index="2"> <Header> <Font Class="myclass"/> </Header> </Cols> Relevant Chapters N/A Color As String (Read/Write) Specifies a value for the COLOR attribute of a <FONT> tag. Usage: VBScript Grid("name").Header.Font.Color = "#000000" XML <Cols Index="name"> <Header> <Font Color="#000000"/> </Header> </Cols> Relevant Chapters 3 and all others. Custom As String (Read/Write) Specifies one or more custom attributes and their values for a <FONT> tag. Usage: VBScript Grid(2).Cell.Font.Custom = "myattr=""myvalue""" XML <Cols Index="2"> <Cell> <Font Custom="myattr="myvalue""/> </Cell> </Cols> Relevant Chapters N/A Face As String (Read/Write) Specifies a value for the FACE attribute of a <FONT> tag. This is the default property. Usage: VBScript Grid(8).Header.Font.Face = "Arial,Helvetica" XML <Cols Index="8"> <Header> <Font Face="Arial,Helvetica"/> </Header> </Cols> Relevant Chapters 3 and all others. Italic As Boolean (Read/Write) False by default. If set to True, adds the <I>...</I> tags around a value. Usage: VBScript Grid(2).Cell.Font.Italic = True XML <Cols Index="2"> <Cell> <Font Italic="True"/> </Cell> </Cols> Relevant Chapters N/A Size As String (Read/Write) Specifies a value for the SIZE attribute of a <FONT> tag. Usage: VBScript Grid.ColRange(2, 4).Cell.Font.Size = "1" XML <ColRange From="2" To="4"> <Cell> <Font Size="1"/> </Cell> </ColRange> Relevant Chapters 3 and all others. Underlined As Boolean (Read/Write) False by default. If set to True, adds the <U>...</U> tags around a value. Usage: VBScript Grid(2).Cell.Font.Underlined = True XML <Cols Index="2"> <Cell> <Font Underlined="True"/> </Cell> </Cols> Relevant Chapters N/A
False by default. If set to True, adds the <B>...</B> tags around a value. Usage: VBScript Grid(2).Cell.Font.Bold = True XML <Cols Index="2"> <Cell> <Font Bold="True"/> </Cell> </Cols> Relevant Chapters 3 and all others.
Usage:
Specifies a value for the CLASS attribute of a <FONT> tag. Usage: VBScript Grid(2).Header.Font.Class = "myclass" XML <Cols Index="2"> <Header> <Font Class="myclass"/> </Header> </Cols> Relevant Chapters N/A
Specifies a value for the COLOR attribute of a <FONT> tag. Usage: VBScript Grid("name").Header.Font.Color = "#000000" XML <Cols Index="name"> <Header> <Font Color="#000000"/> </Header> </Cols> Relevant Chapters 3 and all others.
Specifies one or more custom attributes and their values for a <FONT> tag. Usage: VBScript Grid(2).Cell.Font.Custom = "myattr=""myvalue""" XML <Cols Index="2"> <Cell> <Font Custom="myattr="myvalue""/> </Cell> </Cols> Relevant Chapters N/A
Specifies a value for the FACE attribute of a <FONT> tag. This is the default property. Usage: VBScript Grid(8).Header.Font.Face = "Arial,Helvetica" XML <Cols Index="8"> <Header> <Font Face="Arial,Helvetica"/> </Header> </Cols> Relevant Chapters 3 and all others.
False by default. If set to True, adds the <I>...</I> tags around a value. Usage: VBScript Grid(2).Cell.Font.Italic = True XML <Cols Index="2"> <Cell> <Font Italic="True"/> </Cell> </Cols> Relevant Chapters N/A
Specifies a value for the SIZE attribute of a <FONT> tag. Usage: VBScript Grid.ColRange(2, 4).Cell.Font.Size = "1" XML <ColRange From="2" To="4"> <Cell> <Font Size="1"/> </Cell> </ColRange> Relevant Chapters 3 and all others.
False by default. If set to True, adds the <U>...</U> tags around a value. Usage: VBScript Grid(2).Cell.Font.Underlined = True XML <Cols Index="2"> <Cell> <Font Underlined="True"/> </Cell> </Cols> Relevant Chapters N/A