比较TextElement.XX和TextDecoration.Underline [英] Compare TextElement.XX with TextDecoration.Underline

查看:50
本文介绍了比较TextElement.XX和TextDecoration.Underline的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,

... ...
if(textElement!= null)粗体;
btnItalic.IsChecked = textElement.FontStyle == FontStyles.Italic;
btnUnderline.IsChecked = textElement. == TextDecorations.Underline [0];


如何比较textElement.下划线属性?这两个对象是不同的类型.

Hello,

   ...
   if (textElement != null)
           {
               btnBold.IsChecked = textElement.FontWeight == FontWeights.Bold;
               btnItalic.IsChecked = textElement.FontStyle == FontStyles.Italic;
               btnUnderline.IsChecked =   textElement. == TextDecorations.Underline[0];
           }


How can I compare the textElement.?? to a Underline property? Both objects are different types.

推荐答案

凸起...

没有人吗?来吧,我们这里有专家吗? ;-)
bump...

nobody? come on aint we have experts here? ;-)


这篇关于比较TextElement.XX和TextDecoration.Underline的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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