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
- InternalConfigSettingsFactory.cs
- PackageRelationship.cs
- WinEventWrap.cs
- GacUtil.cs
- AsyncPostBackTrigger.cs
- PrivilegedConfigurationManager.cs
- Stream.cs
- RunClient.cs
- SqlParameterCollection.cs
- EntryPointNotFoundException.cs
- ColumnResizeUndoUnit.cs
- CodeEventReferenceExpression.cs
- SignalGate.cs
- AppSettingsExpressionBuilder.cs
- ObjectListFieldsPage.cs
- PrincipalPermission.cs
- assertwrapper.cs
- Int32CollectionConverter.cs
- ResourceExpressionBuilder.cs
- UpdateExpressionVisitor.cs
- MultipartContentParser.cs
- ArrayListCollectionBase.cs
- SqlParameter.cs
- BitmapEffectOutputConnector.cs
- SafeNativeMethods.cs
- Exceptions.cs
- NullableBoolConverter.cs
- HostingEnvironmentSection.cs
- XPathMessageFilterElementComparer.cs
- XmlObjectSerializerWriteContext.cs
- ViewStateException.cs
- LinqDataSourceStatusEventArgs.cs
- DataGridViewAutoSizeModeEventArgs.cs
- RNGCryptoServiceProvider.cs
- XamlFxTrace.cs
- TextEffectCollection.cs
- MethodAccessException.cs
- GeneralTransform2DTo3DTo2D.cs
- OracleRowUpdatedEventArgs.cs
- ZipIOLocalFileBlock.cs
- EndOfStreamException.cs
- Int32Converter.cs
- DataObjectAttribute.cs
- Html32TextWriter.cs
- TextElementEnumerator.cs
- WebPartMovingEventArgs.cs
- CodeDomSerializerBase.cs
- XsltLoader.cs
- WasEndpointConfigContainer.cs
- WebPartCloseVerb.cs
- CodeIdentifiers.cs
- BamlResourceDeserializer.cs
- HttpRequest.cs
- XmlTextWriter.cs
- SqlWorkflowPersistenceService.cs
- Transform3DGroup.cs
- PropertyGridView.cs
- ThreadSafeMessageFilterTable.cs
- XmlQualifiedName.cs
- Literal.cs
- ProtocolInformationWriter.cs
- QilValidationVisitor.cs
- XmlCompatibilityReader.cs
- SubstitutionList.cs
- ProxyGenerationError.cs
- PreProcessInputEventArgs.cs
- CodeObjectCreateExpression.cs
- NumberSubstitution.cs
- CodeArrayIndexerExpression.cs
- WebPartHelpVerb.cs
- CheckPair.cs
- BitmapPalettes.cs
- GridViewDeletedEventArgs.cs
- QilStrConcatenator.cs
- IntSecurity.cs
- BaseUriHelper.cs
- TypeCollectionPropertyEditor.cs
- AppDomain.cs
- MediaSystem.cs
- SplitterDesigner.cs
- EntityDataSourceStatementEditor.cs
- SoapConverter.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TagMapCollection.cs
- XmlSchemaAttributeGroup.cs
- IntSumAggregationOperator.cs
- CompleteWizardStep.cs
- HMACSHA1.cs
- WindowsRebar.cs
- NamedElement.cs
- PageContent.cs
- Geometry3D.cs
- DropDownButton.cs
- Stackframe.cs
- TableLayoutCellPaintEventArgs.cs
- IApplicationTrustManager.cs
- FieldToken.cs
- SqlDataSource.cs
- ParameterModifier.cs
- ConfigurationValue.cs