如何测量通用Windows类库中的文本? [英] How to measure a text in Universal Windows Class library?
问题描述
大家好,
我正在尝试创建通用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
推荐答案
They suggest some alternatives to System.Drawing
这篇关于如何测量通用Windows类库中的文本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!