private void Dispose(bool disposing)
 {
     if (disposing && m_sharedFont != null)
     {
         m_sharedFont.Dispose();
         m_sharedFont = null;
     }
 }
Beispiel #2
0
            internal SizeF MeasureStringGDI(string text, CanvasFont font, SizeF layoutArea, out int charactersFitted, out int linesFilled)
            {
                if (m_bitsGraphics == null)
                {
                    CreateGraphics();
                }
                StringFormat trimStringFormat = font.TrimStringFormat;

                return(m_bitsGraphics.MeasureString(text, font.GDIFont, layoutArea, trimStringFormat, out charactersFitted, out linesFilled));
            }
 internal TextBoxSharedInfo(CanvasFont font, int sharedState)
 {
     m_sharedFont  = font;
     m_sharedState = sharedState;
 }
 internal CanvasFont(CanvasFont copyFont)
 {
     m_gdiFont              = copyFont.GDIFont;
     m_stringFormat         = copyFont.TrimStringFormat;
     m_writingModeTopBottom = copyFont.WritingModeTopBottom;
 }
Beispiel #5
0
 internal SizeF MeasureStringGDI(string text, CanvasFont font, SizeF layoutArea, out int charactersFitted, out int linesFilled)
 {
     return(m_common.MeasureStringGDI(text, font, layoutArea, out charactersFitted, out linesFilled));
 }