示例#1
0
        public object ToLogFont()
        {
            LOGFONT result = new LOGFONT();

            NativeMethods.GetObject(hFont, Marshal.SizeOf(result), ref result);
            return(result);
        }
示例#2
0
 public LOGFONT(LOGFONT lf)
 {
     this.lfHeight         = lf.lfHeight;
     this.lfWidth          = lf.lfWidth;
     this.lfEscapement     = lf.lfEscapement;
     this.lfOrientation    = lf.lfOrientation;
     this.lfWeight         = lf.lfWeight;
     this.lfItalic         = lf.lfItalic;
     this.lfUnderline      = lf.lfUnderline;
     this.lfStrikeOut      = lf.lfStrikeOut;
     this.lfCharSet        = lf.lfCharSet;
     this.lfOutPrecision   = lf.lfOutPrecision;
     this.lfClipPrecision  = lf.lfClipPrecision;
     this.lfQuality        = lf.lfQuality;
     this.lfPitchAndFamily = lf.lfPitchAndFamily;
     this.lfFaceName       = lf.lfFaceName;
 }