C#中Font转stdole.IFontDisp问题

public static stdole.IFontDisp GetIFontDisp(int size, string fontname, FontStyle fontStyle)
{
     string fontFamilyName = fontname;
     Font font = new Font(fontFamilyName, size, fontStyle);
     return ESRI.ArcGIS.ADF.COMSupport.OLE.GetIFontDispFromFont(font) as stdole.IFontDisp;
}
posted @ 2013-09-09 10:38  乘风莫邪  阅读(974)  评论(0编辑  收藏  举报