Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Core / CSharp / System / Windows / Documents / GetPageNumberCompletedEventArgs.cs / 1 / GetPageNumberCompletedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: GetPageNumberCompletedEventArgs.cs // // Description: GetPageNumberCompleted event. // // History: // 08/29/2005 : grzegorz - created. // //--------------------------------------------------------------------------- using System.ComponentModel; // AsyncCompletedEventArgs namespace System.Windows.Documents { ////// GetPageNumberCompleted event handler. /// public delegate void GetPageNumberCompletedEventHandler(object sender, GetPageNumberCompletedEventArgs e); ////// Event arguments for the GetPageNumberCompleted event. /// public class GetPageNumberCompletedEventArgs : AsyncCompletedEventArgs { ////// Constructor. /// /// The parameter passed into the GetPageNumberAsync call. /// The first page number on which the element appears. /// Error occurred during an asynchronous operation. /// Whether an asynchronous operation has been cancelled. /// Unique identifier for the asynchronous task. public GetPageNumberCompletedEventArgs(ContentPosition contentPosition, int pageNumber, Exception error, bool cancelled, object userState) : base(error, cancelled, userState) { _contentPosition = contentPosition; _pageNumber = pageNumber; } ////// The parameter passed into the GetPageNumberAsync call. /// public ContentPosition ContentPosition { get { // Raise an exception if the operation failed or was cancelled. this.RaiseExceptionIfNecessary(); return _contentPosition; } } ////// The first page number on which the element appears. /// public int PageNumber { get { // Raise an exception if the operation failed or was cancelled. this.RaiseExceptionIfNecessary(); return _pageNumber; } } ////// The parameter passed into the GetPageNumberAsync call. /// private readonly ContentPosition _contentPosition; ////// The first page number on which the element appears. /// private readonly int _pageNumber; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: GetPageNumberCompletedEventArgs.cs // // Description: GetPageNumberCompleted event. // // History: // 08/29/2005 : grzegorz - created. // //--------------------------------------------------------------------------- using System.ComponentModel; // AsyncCompletedEventArgs namespace System.Windows.Documents { ////// GetPageNumberCompleted event handler. /// public delegate void GetPageNumberCompletedEventHandler(object sender, GetPageNumberCompletedEventArgs e); ////// Event arguments for the GetPageNumberCompleted event. /// public class GetPageNumberCompletedEventArgs : AsyncCompletedEventArgs { ////// Constructor. /// /// The parameter passed into the GetPageNumberAsync call. /// The first page number on which the element appears. /// Error occurred during an asynchronous operation. /// Whether an asynchronous operation has been cancelled. /// Unique identifier for the asynchronous task. public GetPageNumberCompletedEventArgs(ContentPosition contentPosition, int pageNumber, Exception error, bool cancelled, object userState) : base(error, cancelled, userState) { _contentPosition = contentPosition; _pageNumber = pageNumber; } ////// The parameter passed into the GetPageNumberAsync call. /// public ContentPosition ContentPosition { get { // Raise an exception if the operation failed or was cancelled. this.RaiseExceptionIfNecessary(); return _contentPosition; } } ////// The first page number on which the element appears. /// public int PageNumber { get { // Raise an exception if the operation failed or was cancelled. this.RaiseExceptionIfNecessary(); return _pageNumber; } } ////// The parameter passed into the GetPageNumberAsync call. /// private readonly ContentPosition _contentPosition; ////// The first page number on which the element appears. /// private readonly int _pageNumber; } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataGridViewCellStyle.cs
- CompilationRelaxations.cs
- MobileErrorInfo.cs
- DataRow.cs
- SqlDataSourceConfigureFilterForm.cs
- DataGridToolTip.cs
- ChineseLunisolarCalendar.cs
- Geometry3D.cs
- AppModelKnownContentFactory.cs
- Translator.cs
- XmlBinaryWriterSession.cs
- BitmapFrame.cs
- NavigationWindow.cs
- ToolStripItemImageRenderEventArgs.cs
- XmlMtomWriter.cs
- TextParagraphView.cs
- SharedStatics.cs
- RuntimeHelpers.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- xdrvalidator.cs
- RadioButton.cs
- TrackingWorkflowEventArgs.cs
- Decorator.cs
- CheckBoxAutomationPeer.cs
- TranslateTransform.cs
- XmlSchemaProviderAttribute.cs
- ViewUtilities.cs
- BooleanSwitch.cs
- PropertyItem.cs
- SplashScreen.cs
- FontInfo.cs
- EnterpriseServicesHelper.cs
- ActiveDocumentEvent.cs
- EventLogPermissionAttribute.cs
- FormsAuthenticationModule.cs
- MulticastDelegate.cs
- TdsRecordBufferSetter.cs
- FontNamesConverter.cs
- StaticContext.cs
- AddInPipelineAttributes.cs
- PrintEvent.cs
- MD5.cs
- InstanceView.cs
- PkcsUtils.cs
- ComponentCollection.cs
- DecimalAnimation.cs
- Queue.cs
- ServerValidateEventArgs.cs
- DeclarativeCatalogPart.cs
- XmlBaseWriter.cs
- FlowchartDesigner.Helpers.cs
- CultureSpecificStringDictionary.cs
- UnsafeNativeMethods.cs
- ControlHelper.cs
- DbModificationCommandTree.cs
- PtsHost.cs
- SoapObjectInfo.cs
- DataGridHyperlinkColumn.cs
- ContentElementAutomationPeer.cs
- WindowsScroll.cs
- WinEventTracker.cs
- WorkflowEventArgs.cs
- BaseAsyncResult.cs
- SymmetricAlgorithm.cs
- XmlNullResolver.cs
- InitializationEventAttribute.cs
- Mapping.cs
- EntityDescriptor.cs
- SqlFactory.cs
- PipelineModuleStepContainer.cs
- ForceCopyBuildProvider.cs
- DataObjectAttribute.cs
- InputLanguage.cs
- StorageComplexTypeMapping.cs
- NumberFunctions.cs
- DataGridViewButtonColumn.cs
- PeerHelpers.cs
- PictureBoxDesigner.cs
- SqlServer2KCompatibilityAnnotation.cs
- DataGridTemplateColumn.cs
- SolidColorBrush.cs
- RoutingExtensionElement.cs
- UrlAuthorizationModule.cs
- Subtree.cs
- QualifierSet.cs
- ArrayWithOffset.cs
- FileAuthorizationModule.cs
- embossbitmapeffect.cs
- SubclassTypeValidator.cs
- AssemblyAssociatedContentFileAttribute.cs
- HtmlEmptyTagControlBuilder.cs
- PaginationProgressEventArgs.cs
- NegationPusher.cs
- TreeViewItem.cs
- WindowsGrip.cs
- Classification.cs
- XmlSchemaIdentityConstraint.cs
- HwndAppCommandInputProvider.cs
- ApplicationInterop.cs
- DetailsViewInsertedEventArgs.cs