1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows;
- using System.Windows.Media;
- namespace PDFSettings
- {
- public class RedactionSettings
- {
- private string content = "";
- public string Content { get { return content; } set { content = value; } }
- private Color linecolor = Colors.Red;
- public Color LineColor { get { return linecolor; } set { linecolor = value; } }
- private Color bgcolor = Colors.Black;
- public Color BgColor { get { return bgcolor; } set { bgcolor = value; } }
- private Color fontcolor = Colors.Red;
- public Color FontColor { get { return fontcolor; } set { fontcolor = value; } }
- private int fontsize = 14;
- public int FontSize { get { return fontsize; } set { fontsize = value; } }
- private FontWeight fontWeight = FontWeights.Regular;
- public FontWeight FontWeight
- {
- get { return fontWeight; }
- set { fontWeight = value; }
- }
- /// <summary>
- /// 跟WPF UI一致的字体
- /// </summary>
- private string fontFamily = "Helvetica";
- public string FontFamily
- {
- get { return fontFamily; }
- set { fontFamily = value; }
- }
- private bool isusetext = false;
- public bool isUseText { get { return isusetext; } set { isusetext = value; } }
- private TextAlignment align = TextAlignment.Left;
- public TextAlignment Align { get { return align; } set { align = value; } }
- public void SetDefualtValue(string content,Color lineColor,Color bgColor,Color fontColor,int FontSize,bool isUserText,TextAlignment align,string fontFamily,FontWeight fontWeight)
- {
- this.Content = content;
- this.LineColor = lineColor;
- this.BgColor = bgColor;
- this.FontColor = fontColor;
- this.FontSize = FontSize;
- this.isUseText = isUserText;
- this.Align = align;
- this.FontFamily = fontFamily;
- this.FontWeight = fontWeight;
- }
- }
- }
|