System.Drawing.Font.GetNativeheight C# (CSharp) Method

GetNativeheight() private method

private GetNativeheight ( ) : float
return float
        private float GetNativeheight()
        {
            // Documentation for Accessing Font Metrics
            // http://developer.apple.com/library/ios/#documentation/StringsTextFonts/Conceptual/CoreText_Programming/Operations/Operations.html
            float lineHeight = 0;
            lineHeight += (float)nativeFont.AscentMetric;
            lineHeight += (float)nativeFont.DescentMetric;
            lineHeight += (float)nativeFont.LeadingMetric;

            // Still have not figured this out yet!!!!
            return lineHeight;
        }