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
- OdbcReferenceCollection.cs
- IImplicitResourceProvider.cs
- RectangleConverter.cs
- SessionStateItemCollection.cs
- IListConverters.cs
- DeploymentSection.cs
- DashStyle.cs
- KoreanCalendar.cs
- ErrorTableItemStyle.cs
- DrawingAttributesDefaultValueFactory.cs
- LinkArea.cs
- DataServiceClientException.cs
- RuleInfoComparer.cs
- WriteLine.cs
- QuotedPrintableStream.cs
- Internal.cs
- DockEditor.cs
- DelegateHelpers.Generated.cs
- KnownIds.cs
- UnsettableComboBox.cs
- BulletDecorator.cs
- EllipseGeometry.cs
- CacheEntry.cs
- VisualStyleRenderer.cs
- XmlValidatingReader.cs
- ClientTargetSection.cs
- ConfigXmlSignificantWhitespace.cs
- KerberosRequestorSecurityToken.cs
- WindowInteractionStateTracker.cs
- BooleanToVisibilityConverter.cs
- OSFeature.cs
- MaskDescriptors.cs
- MenuItemBindingCollection.cs
- DynamicQueryableWrapper.cs
- X509WindowsSecurityToken.cs
- OracleCommandSet.cs
- OAVariantLib.cs
- keycontainerpermission.cs
- FileLevelControlBuilderAttribute.cs
- RecordBuilder.cs
- ImagingCache.cs
- CommentEmitter.cs
- XmlHelper.cs
- ObjectNotFoundException.cs
- StateManagedCollection.cs
- Transform3DCollection.cs
- SqlUtil.cs
- LoginName.cs
- InputQueue.cs
- SqlDataSourceFilteringEventArgs.cs
- CompositeScriptReferenceEventArgs.cs
- xmlsaver.cs
- RegisterResponseInfo.cs
- MimeXmlReflector.cs
- StylusTip.cs
- HyperLinkColumn.cs
- compensatingcollection.cs
- DataObjectPastingEventArgs.cs
- XmlDeclaration.cs
- TemplateField.cs
- Image.cs
- TouchEventArgs.cs
- ExceptionRoutedEventArgs.cs
- TypeDescriptorContext.cs
- TraceHandlerErrorFormatter.cs
- NamespaceQuery.cs
- SoapConverter.cs
- isolationinterop.cs
- PagesSection.cs
- ProviderSettings.cs
- WebPartManagerInternals.cs
- EndpointAddress10.cs
- TrackingMemoryStreamFactory.cs
- DataPagerField.cs
- DbParameterHelper.cs
- QueryCacheManager.cs
- ObjectReferenceStack.cs
- FunctionDescription.cs
- XmlArrayItemAttributes.cs
- Config.cs
- WindowsComboBox.cs
- CalendarDay.cs
- WizardPanel.cs
- SeverityFilter.cs
- CodeFieldReferenceExpression.cs
- InputChannelBinder.cs
- HMACSHA384.cs
- IOThreadScheduler.cs
- StyleSelector.cs
- ByteKeyFrameCollection.cs
- PageDeviceFont.cs
- DispatcherTimer.cs
- Coordinator.cs
- _IPv4Address.cs
- SmiTypedGetterSetter.cs
- ToolStripDropTargetManager.cs
- ClientTargetCollection.cs
- BigIntegerStorage.cs
- StreamInfo.cs
- BufferedStream.cs