Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / ndp / fx / src / CommonUI / System / Drawing / Printing / PrintPageEvent.cs / 1 / PrintPageEvent.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Printing { using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel; using Microsoft.Win32; ////// /// // NOTE: Please keep this class consistent with PaintEventArgs. public class PrintPageEventArgs : EventArgs { private bool hasMorePages; private bool cancel; private Graphics graphics; private readonly Rectangle marginBounds; private readonly Rectangle pageBounds; private readonly PageSettings pageSettings; ///Provides data for the ////// event. /// /// public PrintPageEventArgs(Graphics graphics, Rectangle marginBounds, Rectangle pageBounds, PageSettings pageSettings) { this.graphics = graphics; // may be null, see PrintController this.marginBounds = marginBounds; this.pageBounds = pageBounds; this.pageSettings = pageSettings; } ///Initializes a new instance of the ///class. /// /// public bool Cancel { get { return cancel;} set { cancel = value;} } ///Gets or sets a value indicating whether the print job should be canceled. ////// /// public Graphics Graphics { get { return graphics; } } ////// Gets the ////// used to paint the /// item. /// /// /// public bool HasMorePages { get { return hasMorePages;} set { hasMorePages = value;} } ///Gets or sets a value indicating whether an additional page should /// be printed. ////// /// public Rectangle MarginBounds { get { return marginBounds; } } ///Gets the rectangular area that represents the portion of the page between the margins. ////// /// public Rectangle PageBounds { get { return pageBounds; } } ////// Gets the rectangular area that represents the total area of the page. /// ////// /// public PageSettings PageSettings { get { return pageSettings; } } ///Gets /// the page settings for the current page. ////// /// // We want a way to dispose the GDI+ Graphics, but we don't want to create one // simply to dispose it internal void Dispose() { graphics.Dispose(); } internal void SetGraphics(Graphics value) { this.graphics = value; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------------------------ //Disposes /// of the resources (other than memory) used by /// the ///. // Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Drawing.Printing { using System.Diagnostics; using System; using System.Drawing; using System.ComponentModel; using Microsoft.Win32; ////// /// // NOTE: Please keep this class consistent with PaintEventArgs. public class PrintPageEventArgs : EventArgs { private bool hasMorePages; private bool cancel; private Graphics graphics; private readonly Rectangle marginBounds; private readonly Rectangle pageBounds; private readonly PageSettings pageSettings; ///Provides data for the ////// event. /// /// public PrintPageEventArgs(Graphics graphics, Rectangle marginBounds, Rectangle pageBounds, PageSettings pageSettings) { this.graphics = graphics; // may be null, see PrintController this.marginBounds = marginBounds; this.pageBounds = pageBounds; this.pageSettings = pageSettings; } ///Initializes a new instance of the ///class. /// /// public bool Cancel { get { return cancel;} set { cancel = value;} } ///Gets or sets a value indicating whether the print job should be canceled. ////// /// public Graphics Graphics { get { return graphics; } } ////// Gets the ////// used to paint the /// item. /// /// /// public bool HasMorePages { get { return hasMorePages;} set { hasMorePages = value;} } ///Gets or sets a value indicating whether an additional page should /// be printed. ////// /// public Rectangle MarginBounds { get { return marginBounds; } } ///Gets the rectangular area that represents the portion of the page between the margins. ////// /// public Rectangle PageBounds { get { return pageBounds; } } ////// Gets the rectangular area that represents the total area of the page. /// ////// /// public PageSettings PageSettings { get { return pageSettings; } } ///Gets /// the page settings for the current page. ////// /// // We want a way to dispose the GDI+ Graphics, but we don't want to create one // simply to dispose it internal void Dispose() { graphics.Dispose(); } internal void SetGraphics(Graphics value) { this.graphics = value; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.Disposes /// of the resources (other than memory) used by /// the ///.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlAutoDetectWriter.cs
- Region.cs
- DetailsViewPageEventArgs.cs
- IntSecurity.cs
- UndirectedGraph.cs
- Cell.cs
- HTTPNotFoundHandler.cs
- DefaultObjectMappingItemCollection.cs
- CommonObjectSecurity.cs
- DBConnectionString.cs
- ExitEventArgs.cs
- EncryptedXml.cs
- BitmapVisualManager.cs
- Int64Converter.cs
- IResourceProvider.cs
- AttributeEmitter.cs
- Timeline.cs
- CodeArrayIndexerExpression.cs
- DuplicateWaitObjectException.cs
- TextStore.cs
- StyleXamlTreeBuilder.cs
- ObjectConverter.cs
- BuildProviderCollection.cs
- XamlSerializerUtil.cs
- SqlBulkCopyColumnMapping.cs
- CorrelationToken.cs
- ContentElement.cs
- ImageMap.cs
- ArglessEventHandlerProxy.cs
- TrustManagerMoreInformation.cs
- BaseParser.cs
- ToolboxComponentsCreatingEventArgs.cs
- ValidationResult.cs
- RSAProtectedConfigurationProvider.cs
- SoapSchemaImporter.cs
- TextEndOfLine.cs
- CheckedPointers.cs
- ClickablePoint.cs
- TextContainerHelper.cs
- HashFinalRequest.cs
- StrokeNodeOperations2.cs
- MatrixTransform.cs
- XmlSignificantWhitespace.cs
- TreeViewCancelEvent.cs
- Int16Converter.cs
- NativeMethods.cs
- ApplicationServiceHelper.cs
- DeobfuscatingStream.cs
- SolidColorBrush.cs
- ComboBox.cs
- TCPListener.cs
- Vector3DKeyFrameCollection.cs
- ArraySortHelper.cs
- XmlSerializerFactory.cs
- BindStream.cs
- RemoteWebConfigurationHostServer.cs
- SmtpNetworkElement.cs
- MultipartContentParser.cs
- ValidationPropertyAttribute.cs
- IImplicitResourceProvider.cs
- DetailsView.cs
- SQLBinary.cs
- GridErrorDlg.cs
- DataTableNameHandler.cs
- _LoggingObject.cs
- ItemCheckEvent.cs
- SecurityContext.cs
- EdmSchemaAttribute.cs
- KeyEvent.cs
- TransformerInfoCollection.cs
- WindowsTooltip.cs
- FixedDocumentPaginator.cs
- FontCollection.cs
- Accessible.cs
- CategoriesDocument.cs
- SafeSecurityHandles.cs
- ServicePoint.cs
- DataSetUtil.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- AvtEvent.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- UriTemplateTable.cs
- TreeView.cs
- PointAnimationBase.cs
- ReadOnlyNameValueCollection.cs
- DurableInstanceManager.cs
- safesecurityhelperavalon.cs
- FileNotFoundException.cs
- CompressEmulationStream.cs
- ObjectStateFormatter.cs
- ErrorItem.cs
- LabelLiteral.cs
- LocatorPartList.cs
- LinqDataSourceSelectEventArgs.cs
- Expression.cs
- NativeMethods.cs
- HighlightVisual.cs
- XPathAxisIterator.cs
- EnvironmentPermission.cs
- WebPartCloseVerb.cs