Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- StateWorkerRequest.cs
- CodeValidator.cs
- loginstatus.cs
- AgileSafeNativeMemoryHandle.cs
- DataGridLinkButton.cs
- DataGridColumnCollectionEditor.cs
- IntranetCredentialPolicy.cs
- MachineKeySection.cs
- CodePrimitiveExpression.cs
- DesignerCategoryAttribute.cs
- SqlEnums.cs
- sapiproxy.cs
- MemberPath.cs
- StateChangeEvent.cs
- TextEndOfLine.cs
- SqlFactory.cs
- LabelAutomationPeer.cs
- SaveWorkflowAsyncResult.cs
- QueryRewriter.cs
- MethodCallTranslator.cs
- DebugInfoGenerator.cs
- QilTypeChecker.cs
- TextLine.cs
- Serialization.cs
- PersonalizationStateInfo.cs
- RenderOptions.cs
- UnknownBitmapEncoder.cs
- SchemaImporterExtensionElementCollection.cs
- CannotUnloadAppDomainException.cs
- WindowsToolbar.cs
- DBConcurrencyException.cs
- StrokeIntersection.cs
- CellTreeNodeVisitors.cs
- SafeFileMappingHandle.cs
- Wildcard.cs
- CodeRemoveEventStatement.cs
- CryptoStream.cs
- RotateTransform3D.cs
- SequentialOutput.cs
- StringConcat.cs
- ToolStripDropDownItem.cs
- ServiceModelSectionGroup.cs
- MarshalByRefObject.cs
- StylusEditingBehavior.cs
- ExpressionTable.cs
- RenderCapability.cs
- ToolStripSystemRenderer.cs
- ProfileEventArgs.cs
- AccessibleObject.cs
- ChangeConflicts.cs
- EntityClientCacheKey.cs
- MemoryStream.cs
- Add.cs
- HttpWebResponse.cs
- InputLangChangeRequestEvent.cs
- EntityDataSourceView.cs
- XamlBuildTaskServices.cs
- RequestCache.cs
- Label.cs
- AppearanceEditorPart.cs
- SafeFileMappingHandle.cs
- XmlSchemaInferenceException.cs
- MissingManifestResourceException.cs
- MultiBinding.cs
- QueryReaderSettings.cs
- MultiSelector.cs
- InvalidDataException.cs
- PassportAuthentication.cs
- XmlBoundElement.cs
- HandoffBehavior.cs
- Base64Stream.cs
- LowerCaseStringConverter.cs
- EndpointConfigContainer.cs
- PtsCache.cs
- ClassicBorderDecorator.cs
- SuppressMergeCheckAttribute.cs
- ApplicationId.cs
- FormView.cs
- RadioButton.cs
- RightsManagementEncryptedStream.cs
- EventInfo.cs
- DataPointer.cs
- ConfigurationPropertyCollection.cs
- BigInt.cs
- TransformPattern.cs
- WorkflowApplicationCompletedException.cs
- Header.cs
- MailBnfHelper.cs
- Atom10FormatterFactory.cs
- ProtectedUri.cs
- RoutingUtilities.cs
- ParallelQuery.cs
- WindowsFormsSectionHandler.cs
- AssemblyBuilder.cs
- RectangleGeometry.cs
- BindableTemplateBuilder.cs
- DbDeleteCommandTree.cs
- SelectedCellsChangedEventArgs.cs
- NameValuePermission.cs
- SamlSecurityToken.cs