如何测量通用Windows类库中的文本? [英] How to measure a text in Universal Windows Class library?

查看:55
本文介绍了如何测量通用Windows类库中的文本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在尝试创建通用Windows类库,以用于具有指定字体详细信息的文本度量功能.我可以在其他支持GDI的System.Drawing功能的平台上实现此目的.在我的研究中,我发现通用 Windows不支持System.绘图名称空间.让我知道如何测量通用Windows类库中与System.Drawing.Graphics.MeasureString()值等效的文本吗?

I was trying to create an Universal Windows class library for the functionality to Measure a text with the specified font details. I can achieve this in other platform which supports System.Drawing functionality of GDI. In my research, I found Universal Windows doesn't have support for System.Drawing namespaces. Let me know on how can I measure the text in Universal Windows class library as equivalent to the values of System.Drawing.Graphics.MeasureString()?

谢谢

Deivaselvan

Deivaselvan

推荐答案

在StackOverflow上检查以下答案:

他们建议使用System.Drawing

They suggest some alternatives to System.Drawing


这篇关于如何测量通用Windows类库中的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆