コード例 #1
0
 private void AddToPrint()
 {
     CustomPrintModel model = new CustomPrintModel
     {
         Text                = this._text,
         Copies              = this._copies,
         FontType            = this._selectedFont,
         FontSize            = this._selectedFontSize,
         FontStyle           = this._selectedFontStyle,
         FontWeight          = this._selectedFontWeight,
         PaperHeight         = this.PaperSize[_selectedPaperSize].PrintHeight,
         PaperWidth          = this.PaperSize[_selectedPaperSize].PrintWidth,
         HorizontalAlignment = this._horizontalContentAlignment,
         VerticalAlignment   = this._verticalContentAlignment
     };
     CustomLablePrint print = new CustomLablePrint(model);
 }
コード例 #2
0
 public CustomLablePrint(CustomPrintModel model)
 {
     this.model = model;
     InitialSettingsAndPrint();
 }