WinForms

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class FontMetric - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class FontMetric

    Helper class, used for getting font ascent/descent

    Inheritance
    System.Object
    FontMetric
    Inherited Members
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Syncfusion.Layouting
    Assembly: Syncfusion.DLS.Base.dll
    Syntax
    public class FontMetric

    Constructors

    FontMetric()

    Declaration
    public FontMetric()

    FontMetric(Font)

    Declaration
    public FontMetric(Font font)
    Parameters
    Type Name Description
    System.Drawing.Font font

    FontMetric(Font, Graphics)

    Declaration
    public FontMetric(Font font, Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Font font
    System.Drawing.Graphics g

    Properties

    Ascent

    Declaration
    public double Ascent { get; }
    Property Value
    Type Description
    System.Double

    BmpGraphics

    Declaration
    protected static Graphics BmpGraphics { get; }
    Property Value
    Type Description
    System.Drawing.Graphics

    Descent

    Declaration
    public double Descent { get; }
    Property Value
    Type Description
    System.Double

    Methods

    UpdateMetricData(Graphics)

    Declaration
    public void UpdateMetricData(Graphics g)
    Parameters
    Type Name Description
    System.Drawing.Graphics g

    UpdateMetricData(Graphics, Font)

    Declaration
    public void UpdateMetricData(Graphics g, Font font)
    Parameters
    Type Name Description
    System.Drawing.Graphics g
    System.Drawing.Font font
    Back to top Generated by DocFX
    Copyright © 2001 - 2022 Syncfusion Inc. All Rights Reserved