|
@@ -61,11 +61,11 @@ namespace PDF_Office.Views.BOTA
|
|
case AnnotArgsType.AnnotHighlight:
|
|
case AnnotArgsType.AnnotHighlight:
|
|
BtnHighlight.Visibility = Visibility.Visible;
|
|
BtnHighlight.Visibility = Visibility.Visible;
|
|
PathHighlight.Background = new SolidColorBrush((data as TextHighlightAnnotArgs).Color);
|
|
PathHighlight.Background = new SolidColorBrush((data as TextHighlightAnnotArgs).Color);
|
|
- //TxbContext.Text = data.Content;
|
|
|
|
- if (!string.IsNullOrEmpty(TxbMarkupContent.Text))
|
|
|
|
- {
|
|
|
|
- TxbMarkupContent.Background = new SolidColorBrush((data as TextHighlightAnnotArgs).Color);
|
|
|
|
- }
|
|
|
|
|
|
+ //BOTA - 注释,MVP不处理高亮 / 下划线 / 删除线的样式,只显示文字
|
|
|
|
+ //if (!string.IsNullOrEmpty(TxbMarkupContent.Text))
|
|
|
|
+ //{
|
|
|
|
+ // TxbMarkupContent.Background = new SolidColorBrush((data as TextHighlightAnnotArgs).Color);
|
|
|
|
+ //}
|
|
|
|
|
|
break;
|
|
break;
|
|
|
|
|
|
@@ -140,18 +140,18 @@ namespace PDF_Office.Views.BOTA
|
|
|
|
|
|
#region to do
|
|
#region to do
|
|
|
|
|
|
- TextDecoration myStrikeout = new TextDecoration();
|
|
|
|
- Pen myPen2 = new Pen();
|
|
|
|
- myPen2.Brush = new SolidColorBrush((data as TextStrikeoutAnnotArgs).Color);
|
|
|
|
- myPen2.Brush.Opacity = 0.8;
|
|
|
|
- myPen2.Thickness = 2;
|
|
|
|
- myStrikeout.Pen = myPen2;
|
|
|
|
- myStrikeout.PenOffset = -4;
|
|
|
|
- myStrikeout.PenThicknessUnit = TextDecorationUnit.FontRecommended;
|
|
|
|
- TextDecorationCollection myCollection2 = new TextDecorationCollection();
|
|
|
|
- myCollection2.Add(myStrikeout);
|
|
|
|
- //因为波浪线无法实现 暂时只显示文字 不显示下划线,删除线等
|
|
|
|
- TxbMarkupContent.TextDecorations = myCollection2;
|
|
|
|
|
|
+ //TextDecoration myStrikeout = new TextDecoration();
|
|
|
|
+ //Pen myPen2 = new Pen();
|
|
|
|
+ //myPen2.Brush = new SolidColorBrush((data as TextStrikeoutAnnotArgs).Color);
|
|
|
|
+ //myPen2.Brush.Opacity = 0.8;
|
|
|
|
+ //myPen2.Thickness = 2;
|
|
|
|
+ //myStrikeout.Pen = myPen2;
|
|
|
|
+ //myStrikeout.PenOffset = -4;
|
|
|
|
+ //myStrikeout.PenThicknessUnit = TextDecorationUnit.FontRecommended;
|
|
|
|
+ //TextDecorationCollection myCollection2 = new TextDecorationCollection();
|
|
|
|
+ //myCollection2.Add(myStrikeout);
|
|
|
|
+ ////因为波浪线无法实现 暂时只显示文字 不显示下划线,删除线等
|
|
|
|
+ //TxbMarkupContent.TextDecorations = myCollection2;
|
|
|
|
|
|
#endregion to do
|
|
#endregion to do
|
|
|
|
|
|
@@ -168,16 +168,16 @@ namespace PDF_Office.Views.BOTA
|
|
|
|
|
|
#region TO DO
|
|
#region TO DO
|
|
|
|
|
|
- TextDecoration myUnderline = new TextDecoration();
|
|
|
|
- Pen myPen1 = new Pen();
|
|
|
|
- myPen1.Brush = new SolidColorBrush((data as TextUnderlineAnnotArgs).Color);
|
|
|
|
- myPen1.Brush.Opacity = 0.8;
|
|
|
|
- myPen1.Thickness = 2;
|
|
|
|
- myUnderline.Pen = myPen1;
|
|
|
|
- myUnderline.PenThicknessUnit = TextDecorationUnit.FontRecommended;
|
|
|
|
- TextDecorationCollection myCollection1 = new TextDecorationCollection();
|
|
|
|
- myCollection1.Add(myUnderline);
|
|
|
|
- TxbMarkupContent.TextDecorations = myCollection1;
|
|
|
|
|
|
+ //TextDecoration myUnderline = new TextDecoration();
|
|
|
|
+ //Pen myPen1 = new Pen();
|
|
|
|
+ //myPen1.Brush = new SolidColorBrush((data as TextUnderlineAnnotArgs).Color);
|
|
|
|
+ //myPen1.Brush.Opacity = 0.8;
|
|
|
|
+ //myPen1.Thickness = 2;
|
|
|
|
+ //myUnderline.Pen = myPen1;
|
|
|
|
+ //myUnderline.PenThicknessUnit = TextDecorationUnit.FontRecommended;
|
|
|
|
+ //TextDecorationCollection myCollection1 = new TextDecorationCollection();
|
|
|
|
+ //myCollection1.Add(myUnderline);
|
|
|
|
+ //TxbMarkupContent.TextDecorations = myCollection1;
|
|
|
|
|
|
#endregion TO DO
|
|
#endregion TO DO
|
|
|
|
|
|
@@ -249,5 +249,7 @@ namespace PDF_Office.Views.BOTA
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+
|
|
}
|
|
}
|
|
}
|
|
}
|