C#中Font转stdole.IFontDisp问题
2013-09-09 10:02
225 查看
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;
}
{
string fontFamilyName = fontname;
Font font = new Font(fontFamilyName, size, fontStyle);
return ESRI.ArcGIS.ADF.COMSupport.OLE.GetIFontDispFromFont(font) as stdole.IFontDisp;
}
相关文章推荐
- IFontDisp和CFontHolder的使用问题
- Image与stdole.IPictureDisp 互转(C#)
- JAVA安卓和C# 3DES加密解密的兼容性问题
- C#与.NET程序员面试宝典 1.2.2 个人简历的写法及应注意的问题
- C#调用c++Dll结构体数组指针的问题
- 从代码都发布遇到的问题总结(C#调用非托管dll文件,部署项目)
- 问题:C#根据生日计算属相;结果:C#实现根据年份计算生肖属相的方法
- c#程序运行报错提示相应的设置outputpath和assemblyname属性的问题解决办法!
- C#中使用System.Web.Mail.MailMessage类无法CC多人的问题
- ajaxFileUpload插件,C#返回Json数据报错问题的解决方案
- 【C#】线程问题
- c# winform 全角自动转化半角问题(C#中ImeMode的值)
- asp.net(c#)的一个非常非常奇怪的问题
- C# 中FtpWebRequest 类NetworkCredential多次连接认证的问题
- C#用Oracle.DataAccess中连接Oracle要注意版本问题!
- C#生成配置选择release编译后仍然是debug(或者配置debug编译后仍是release)的问题解决--日志记录
- VS2005中,C#中跨线程访问控件问题解决方案
- 关于用C#实现蚁群算法解决TSP问题
- C#中反斜杠\与斜杠/ 转移字符 路径的问题
- 带着问题读CLR via C#(二)类型基础