Spread Windows Forms 18
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / FieldsEditorControl Class / Font Property


In This Topic
    Font Property (FieldsEditorControl)
    In This Topic
    Gets or sets the font of the text displayed by the control.
    Syntax
    'Declaration
     
    
    Public Overridable Property Font As Font
    'Usage
     
    
    Dim instance As FieldsEditorControl
    Dim value As Font
     
    instance.Font = value
     
    value = instance.Font
    public virtual Font Font {get; set;}

    Property Value

    The System.Drawing.Font to apply to the text displayed by the control. The default is the value of the System.Windows.Forms.Control.DefaultFont property.
    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. For more information about ambient properties, see the System.Windows.Forms.AmbientProperties class or the System.Windows.Forms.Control class overview.

    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.

    See Also