/// <summary> /// 创建指定尺寸的 Scale 参数信息。 /// </summary> /// <param name="widthMM">纸张宽度(毫米)</param> /// <param name="heightMM">纸张高度(毫米)</param> /// <returns>指定尺寸的纸张信息。</returns> public static ViPaper Create(double widthMM, double heightMM, PaperFormat paperFormat, PageOrientation orientation) { ViPaper paper = new ViPaper(widthMM, heightMM, paperFormat); paper.Orientation = orientation; return(paper); }
public ViPrintParams(ViPaper paper, IPrintCallBack callBack) { this.Paper = paper; this.CallBack = callBack; // FontFace FontFaceHeader = new Typeface(new FontFamily("Arial"), FontStyles.Normal, FontWeights.Bold, FontStretches.Normal); FontFaceFooter = FontFaceHeader; FontFaceNormal = new Typeface(new FontFamily("Arial"), FontStyles.Normal, FontWeights.Normal, FontStretches.Normal); // FontSize FontSizeHeader = 16.0f; FontSizeFooter = 16.0f; FontSizeNormal = 14.0f; // FontColorNormal = new SolidColorBrush(Colors.Black); BorderNormal = new Pen(new SolidColorBrush(Colors.Black), 1.0f); }