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
- Profiler.cs
- PtsHost.cs
- BooleanFunctions.cs
- ProcessHostMapPath.cs
- Trigger.cs
- Transform.cs
- DataGridHyperlinkColumn.cs
- PrintDialog.cs
- UnsafeNativeMethods.cs
- TypeForwardedToAttribute.cs
- NetNamedPipeSecurity.cs
- BaseServiceProvider.cs
- ColumnResizeAdorner.cs
- FilterQuery.cs
- PersonalizableTypeEntry.cs
- WebUtil.cs
- DataServiceConfiguration.cs
- FormsAuthenticationUserCollection.cs
- webclient.cs
- DoubleMinMaxAggregationOperator.cs
- EventManager.cs
- LocatorManager.cs
- BoundingRectTracker.cs
- HScrollProperties.cs
- PrivilegeNotHeldException.cs
- HelloMessage11.cs
- PrimitiveXmlSerializers.cs
- StructuredTypeEmitter.cs
- TypeDelegator.cs
- SimpleApplicationHost.cs
- DbConnectionFactory.cs
- ImageButton.cs
- ObjectDataSourceStatusEventArgs.cs
- IndentedWriter.cs
- SettingsBase.cs
- SwitchElementsCollection.cs
- Registry.cs
- ComponentCache.cs
- AdCreatedEventArgs.cs
- Filter.cs
- WindowsListViewSubItem.cs
- ConfigurationLocation.cs
- ListCardsInFileRequest.cs
- ReadWriteSpinLock.cs
- Hashtable.cs
- ClientProxyGenerator.cs
- ParameterModifier.cs
- Resources.Designer.cs
- NotCondition.cs
- XmlSchemaRedefine.cs
- ClonableStack.cs
- WebPartVerb.cs
- TextCharacters.cs
- EventWaitHandleSecurity.cs
- AmbiguousMatchException.cs
- SqlServer2KCompatibilityAnnotation.cs
- ToolStripDropTargetManager.cs
- TailPinnedEventArgs.cs
- ItemsPresenter.cs
- Authorization.cs
- RTLAwareMessageBox.cs
- CheckBox.cs
- HtmlGenericControl.cs
- ChildDocumentBlock.cs
- D3DImage.cs
- EntityWrapperFactory.cs
- RadioButtonRenderer.cs
- TypedReference.cs
- DataSvcMapFileSerializer.cs
- TimersDescriptionAttribute.cs
- ColorInterpolationModeValidation.cs
- TreeNodeBinding.cs
- UInt16Storage.cs
- BinaryReader.cs
- ImpersonationContext.cs
- FixedDocumentPaginator.cs
- DashStyle.cs
- oledbmetadatacolumnnames.cs
- RegistryKey.cs
- Thumb.cs
- ToolStrip.cs
- NoPersistScope.cs
- ImpersonateTokenRef.cs
- PropertyConverter.cs
- FileDialogCustomPlacesCollection.cs
- TextParentUndoUnit.cs
- PanelStyle.cs
- PropertyNames.cs
- PreviewKeyDownEventArgs.cs
- ObjectConverter.cs
- WpfPayload.cs
- EasingKeyFrames.cs
- InfoCardKeyedHashAlgorithm.cs
- VectorCollectionValueSerializer.cs
- RelationshipEndMember.cs
- ExpressionCopier.cs
- WindowsTokenRoleProvider.cs
- ConstraintConverter.cs
- PackageDigitalSignatureManager.cs
- ScaleTransform.cs