Class FontMetric
Helper class, used for getting font ascent/descent
Inheritance
System.Object
FontMetric
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 |
---|
System.Double |
BmpGraphics
Declaration
protected static Graphics BmpGraphics { get; }
Property Value
Type |
---|
System.Drawing.Graphics |
Descent
Declaration
public double Descent { get; }
Property Value
Type |
---|
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 |