Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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
- DataServiceHost.cs
- SecurityDescriptor.cs
- SqlLiftWhereClauses.cs
- EntitySet.cs
- SafeCryptoHandles.cs
- ConnectionPoolManager.cs
- Enumerable.cs
- UnaryOperationBinder.cs
- StyleXamlTreeBuilder.cs
- XNodeNavigator.cs
- TabItemWrapperAutomationPeer.cs
- DataGridHeaderBorder.cs
- ImageDesigner.cs
- SqlFacetAttribute.cs
- CqlGenerator.cs
- GridViewSelectEventArgs.cs
- CommandBindingCollection.cs
- Math.cs
- DocobjHost.cs
- RunWorkerCompletedEventArgs.cs
- Atom10FeedFormatter.cs
- UserControl.cs
- OptionalRstParameters.cs
- MultiView.cs
- HttpHeaderCollection.cs
- IndexOutOfRangeException.cs
- FlowDocumentReader.cs
- VectorAnimationBase.cs
- BStrWrapper.cs
- UIElement3D.cs
- SynchronizingStream.cs
- SizeAnimationUsingKeyFrames.cs
- MailMessageEventArgs.cs
- SecurityState.cs
- VScrollProperties.cs
- EndpointAddressAugust2004.cs
- InputScope.cs
- CurrencyManager.cs
- ColorContext.cs
- ConvertBinder.cs
- DesignerView.cs
- ServicesUtilities.cs
- AccessKeyManager.cs
- TextRangeBase.cs
- TearOffProxy.cs
- ResponseBodyWriter.cs
- DataViewSettingCollection.cs
- Size3D.cs
- CallInfo.cs
- NumberFormatter.cs
- CategoryGridEntry.cs
- ReadOnlyCollectionBase.cs
- DescendantOverDescendantQuery.cs
- CssClassPropertyAttribute.cs
- MaterializeFromAtom.cs
- LinkLabel.cs
- Contracts.cs
- StrokeNode.cs
- NetTcpBindingElement.cs
- WinEventHandler.cs
- DataControlButton.cs
- StaticDataManager.cs
- BitConverter.cs
- NotifyParentPropertyAttribute.cs
- WindowsPen.cs
- EventSchemaTraceListener.cs
- IDispatchConstantAttribute.cs
- XmlBinaryWriter.cs
- XmlAttributeOverrides.cs
- GPPOINT.cs
- SchemaImporterExtensionElementCollection.cs
- ObjectAnimationUsingKeyFrames.cs
- XmlException.cs
- SafeArrayTypeMismatchException.cs
- Stroke.cs
- CollectionBuilder.cs
- Literal.cs
- Rfc4050KeyFormatter.cs
- WindowsFormsSectionHandler.cs
- QueryResult.cs
- QilReplaceVisitor.cs
- UIAgentAsyncParams.cs
- SiteIdentityPermission.cs
- LookupBindingPropertiesAttribute.cs
- InfoCardProofToken.cs
- Activity.cs
- XamlToRtfWriter.cs
- DeviceSpecificDesigner.cs
- TextPointer.cs
- DateTime.cs
- listviewsubitemcollectioneditor.cs
- Canvas.cs
- WizardPanelChangingEventArgs.cs
- NumericExpr.cs
- XmlSiteMapProvider.cs
- BufferAllocator.cs
- DefaultPrintController.cs
- LinqDataSourceUpdateEventArgs.cs
- PhysicalAddress.cs
- SortedList.cs