GemBox.Spreadsheet
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    FontFileSelectionEventArgs Class

    Namespace:
    GemBox.Spreadsheet
    Assembly:
    GemBox.Spreadsheet.dll

    Provides data for the FontSelection event.

    • C#
    • VB.NET
    public sealed class FontFileSelectionEventArgs : EventArgs
    Public NotInheritable Class FontFileSelectionEventArgs
        Inherits EventArgs
    Inheritance:
    System.Object
    System.EventArgs
    FontFileSelectionEventArgs

    Properties

    Bold

    Gets a value indicating whether the font is bold.

    • C#
    • VB.NET
    public bool Bold { get; }
    Public ReadOnly Property Bold As Boolean
    Property Value
    System.Boolean

    true if the font is bold; otherwise, false.

    Character

    Gets the Unicode character that should be outlined with the Font or -1 if no character should currently be outlined.

    • C#
    • VB.NET
    public int Character { get; }
    Public ReadOnly Property Character As Integer
    Property Value
    System.Int32

    The Unicode character that should be outlined with the Font or -1 if no character should currently be outlined.

    Font

    Gets or sets the actual font that will be used for outlining the Character based on the FontName, Italic and Bold values.

    Use any of the fonts returned from the Fonts collection.

    • C#
    • VB.NET
    public FontFile Font { get; set; }
    Public Property Font As FontFile
    Property Value
    FontFile

    The actual font that will be used for outlining the Character based on the FontName, Italic and Bold values.

    Exceptions
    System.ArgumentNullException

    Value is null.

    System.ArgumentException

    The specified font file does not contain outlines for the specified Character.

    FontName

    Gets the original font name.

    • C#
    • VB.NET
    public string FontName { get; }
    Public ReadOnly Property FontName As String
    Property Value
    System.String

    The original font name.

    Italic

    Gets a value indicating whether the font is italic.

    • C#
    • VB.NET
    public bool Italic { get; }
    Public ReadOnly Property Italic As Boolean
    Property Value
    System.Boolean

    true if the font is italic.; otherwise, false.

    See Also

    FontSelection
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.