Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / CommonUI / System / Drawing / Printing / PrintPageEvent.cs / 1305376 / 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 ///.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- QilXmlWriter.cs
- XmlEncodedRawTextWriter.cs
- XmlChoiceIdentifierAttribute.cs
- MenuCommand.cs
- Int64.cs
- DataView.cs
- AddInToken.cs
- HandleRef.cs
- HtmlWindow.cs
- HMACRIPEMD160.cs
- SqlGatherConsumedAliases.cs
- KeyPressEvent.cs
- SqlNode.cs
- DataBoundControl.cs
- LineMetrics.cs
- CommandEventArgs.cs
- SimpleRecyclingCache.cs
- SoapAttributeOverrides.cs
- Html32TextWriter.cs
- LinqDataSourceContextEventArgs.cs
- XmlWrappingReader.cs
- ThicknessKeyFrameCollection.cs
- GeometryValueSerializer.cs
- ObjectDataProvider.cs
- DataGridSortCommandEventArgs.cs
- AssemblyCollection.cs
- OpCodes.cs
- Zone.cs
- ConfigurationManagerHelper.cs
- BigIntegerStorage.cs
- MetricEntry.cs
- LingerOption.cs
- UpDownBase.cs
- Camera.cs
- EntityProviderFactory.cs
- Stylus.cs
- MulticastIPAddressInformationCollection.cs
- ClientRequest.cs
- DeflateEmulationStream.cs
- UnsafeNativeMethods.cs
- DataGridViewAutoSizeModeEventArgs.cs
- DiscoveryDefaults.cs
- RuntimeWrappedException.cs
- LineServicesCallbacks.cs
- ClientTargetSection.cs
- CaseInsensitiveHashCodeProvider.cs
- JulianCalendar.cs
- KeyTime.cs
- EnumerableWrapperWeakToStrong.cs
- StorageFunctionMapping.cs
- HwndPanningFeedback.cs
- Panel.cs
- CrossAppDomainChannel.cs
- NetworkStream.cs
- ComponentEditorPage.cs
- GenericIdentity.cs
- ObjectSelectorEditor.cs
- IsolatedStorageFile.cs
- FaultCode.cs
- SqlDataSourceQuery.cs
- ZipIOFileItemStream.cs
- TypeInitializationException.cs
- DefaultPropertyAttribute.cs
- ReservationCollection.cs
- MailAddress.cs
- figurelengthconverter.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DependencyPropertyConverter.cs
- CssStyleCollection.cs
- EtwTrace.cs
- PageCatalogPart.cs
- FormViewDeleteEventArgs.cs
- _ProxyChain.cs
- TableRowCollection.cs
- BindToObject.cs
- ToolTip.cs
- SQLMembershipProvider.cs
- JournalEntryStack.cs
- ButtonPopupAdapter.cs
- DataGridRowAutomationPeer.cs
- FastEncoderStatics.cs
- ExpressionHelper.cs
- IPAddressCollection.cs
- SetIterators.cs
- metadatamappinghashervisitor.cs
- ProtocolsConfigurationHandler.cs
- RectAnimationClockResource.cs
- UpdatePanelControlTrigger.cs
- ProviderConnectionPointCollection.cs
- PingOptions.cs
- FieldMetadata.cs
- BmpBitmapDecoder.cs
- DescendantQuery.cs
- Rule.cs
- SafeRegistryHandle.cs
- QueryableDataSourceHelper.cs
- SQLBoolean.cs
- TrimSurroundingWhitespaceAttribute.cs
- EastAsianLunisolarCalendar.cs
- Matrix.cs