/// <summary> /// Prints the control to the specified rectangle on the page using the specied scaling and grayscale. /// </summary> /// <param name="scaling">Specifies the scaling use to fit the control draw to the specified rectangle.</param> /// <param name="r">Specifes the rectangle to draw and fit the control relative to the top, left /// of the page margins. Rectangle.Empty indicates that rectangle specified the by the page margins is /// assumed. If either of the Width or Height of the rectangle is zero, then the entire length betwteen /// the appropriate margins is assumed. /// </param> /// <param name="ps">Specifies predefined a PageSettings object.</param> public virtual void PrintCtrl(PrintScale scaling, Rectangle r, PageSettings ps) { ctrlPrinter cp = new ctrlPrinter(this, this._ctrl); cp.PrintCtrl(scaling, r, ps); }
/// <summary> /// Prints the control to the specified rectangle on the page using the specied scaling. /// </summary> /// <param name="scaling">Specifies the scaling use to fit the control draw to the specified rectangle.</param> /// <param name="r">Specifes the rectangle to draw and fit the control relative to the top, left /// of the page margins. Rectangle.Empty indicates that rectangle specified the by the page margins is /// assumed. If either of the Width or Height of the rectangle is zero, then the entire length betwteen /// the appropriate margins is assumed. /// </param> public virtual void PrintCtrl(PrintScale scaling, Rectangle r) { ctrlPrinter cp = new ctrlPrinter(this, this._ctrl); cp.PrintCtrl(scaling, r); }
/// <summary> /// Prints the control to the specified rectangle on the page using the specied scaling and grayscale. /// </summary> /// <param name="scaling">Specifies the scaling use to fit the control draw to the specified rectangle.</param> /// <param name="r">Specifes the rectangle to draw and fit the control relative to the top, left /// of the page margins. Rectangle.Empty indicates that rectangle specified the by the page margins is /// assumed. If either of the Width or Height of the rectangle is zero, then the entire length betwteen /// the appropriate margins is assumed. /// </param> /// <param name="ps">Specifies predefined a PageSettings object.</param> /// <param name="bitmap">If true, specifies that the control is drawn as a bitmap.</param> /// <param name="preview">If true, a PrintPreview dialog is shown instead of drawing to a printer.</param> public virtual void PrintCtrl(PrintScale scaling, Rectangle r, PageSettings ps, bool bitmap, bool preview) { ctrlPrinter cp = new ctrlPrinter(this, this._ctrl); cp.PrintCtrl(scaling, r, ps, bitmap, preview); }