if (styleChange3 == 1)
{
App.winBoard.rtxtTest.Selection.ApplyPropertyValue(Paragraph.TextDecorationsProperty, TextDecorations.Underline);//下划线
styleChange3 = 0;//有下划线
}
else if (styleChange3 == 0)
{
TextDecoration myUnderline = new TextDecoration();//声明一个下滑线变量
Pen myPen = new Pen();// 声明一个画笔
myPen.Brush = new LinearGradientBrush();
myPen.Brush.Opacity = 0;//设置全透明
myUnderline.Pen = myPen;
myUnderline.PenThicknessUnit = TextDecorationUnit.FontRecommended;
TextDecorationCollection myCollection = new TextDecorationC
wpf去掉下滑线
最新推荐文章于 2023-07-10 17:47:47 发布