Spread Windows Forms 7.0 Product Documentation
Font Property
See Also  Support Options
GrapeCity.Win.PluginInputMan Assembly > GrapeCity.Win.Spread.InputMan.CellType.Fields Namespace > Field Class : Font Property


Glossary Item Box

Gets or sets the font of the Field.

Syntax

Visual Basic (Declaration) 
Public Property Font As Font
Visual Basic (Usage)Copy Code
Dim instance As Field
Dim value As Font
 
instance.Font = value
 
value = instance.Font
C# 
public Font Font {get; set;}

Property Value

A System.Drawing.Font object indicates the Font of the Field.

Remarks

The Font property is an ambient property. An ambient property is a control property that, if not set, is retrieved from the parent control. For example, a System.Windows.Forms.Button will have the same System.Windows.Forms.Control.BackColor as its parent System.Windows.Forms.Form by default.

Because the Font is immutable (meaning that you cannot adjust any of its properties), you can only assign the Font property a new Font. However, you can base the new font on the existing font.

Requirements

Target Platforms: Windows 2000 Professional (SP4), Windows 2000 Server, Windows 2003 Server (SP1), Windows 2008, Windows XP (SP2), Windows Vista, Windows 7, Windows 8

See Also

© 2002-2014 ComponentOne, a division of GrapeCity. All Rights Reserved.