Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Core / CSharp / System / Windows / Documents / GetPageNumberCompletedEventArgs.cs / 1305600 / GetPageNumberCompletedEventArgs.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: GetPageNumberCompletedEventArgs.cs // // Description: GetPageNumberCompleted event. // // History: // 08/29/2005 : [....] - 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
- FileCodeGroup.cs
- BitArray.cs
- DBConcurrencyException.cs
- NavigationFailedEventArgs.cs
- LocatorPart.cs
- CultureInfoConverter.cs
- DataGridViewTopRowAccessibleObject.cs
- ContextMenuStrip.cs
- TraceRecord.cs
- QuotedPrintableStream.cs
- RotateTransform.cs
- NamespaceEmitter.cs
- PointAnimationUsingPath.cs
- UTF32Encoding.cs
- EventTrigger.cs
- DivideByZeroException.cs
- TreeNode.cs
- X509CertificateStore.cs
- DefaultTextStoreTextComposition.cs
- AttributeCollection.cs
- Brush.cs
- DbConnectionHelper.cs
- ObjectListCommandsPage.cs
- Inflater.cs
- FlowDocumentPaginator.cs
- SqlDelegatedTransaction.cs
- ApplicationFileParser.cs
- MimePart.cs
- TextParagraphProperties.cs
- _ConnectStream.cs
- DataKeyArray.cs
- SessionState.cs
- AnimationException.cs
- RedirectionProxy.cs
- PriorityRange.cs
- NegatedCellConstant.cs
- VisualProxy.cs
- SpeechEvent.cs
- control.ime.cs
- CodeDOMUtility.cs
- RenderData.cs
- RemoteDebugger.cs
- BypassElementCollection.cs
- BorderSidesEditor.cs
- MemberDescriptor.cs
- DataReaderContainer.cs
- Int32Rect.cs
- ClipboardData.cs
- FaultImportOptions.cs
- ObjectCloneHelper.cs
- Set.cs
- XslVisitor.cs
- XPathNodeHelper.cs
- Decoder.cs
- CLSCompliantAttribute.cs
- Point3DValueSerializer.cs
- CommandPlan.cs
- ProfilePropertySettingsCollection.cs
- Emitter.cs
- sqlstateclientmanager.cs
- TaiwanLunisolarCalendar.cs
- CodeGenerator.cs
- ElementHostAutomationPeer.cs
- MetadataCache.cs
- _HelperAsyncResults.cs
- ConfigurationErrorsException.cs
- EditableTreeList.cs
- PointCollection.cs
- dbdatarecord.cs
- TaiwanCalendar.cs
- GuidTagList.cs
- DecimalKeyFrameCollection.cs
- XmlStreamStore.cs
- List.cs
- PanelStyle.cs
- PropertyInformationCollection.cs
- SmtpFailedRecipientException.cs
- SendMailErrorEventArgs.cs
- ProxyGenerator.cs
- AvtEvent.cs
- RuntimeResourceSet.cs
- RemoveStoryboard.cs
- Graphics.cs
- ApplicationServiceHelper.cs
- DependentList.cs
- FixedSOMElement.cs
- XsdBuilder.cs
- MetricEntry.cs
- documentation.cs
- ApplicationActivator.cs
- SqlFacetAttribute.cs
- TripleDESCryptoServiceProvider.cs
- ZipPackage.cs
- PropertyNames.cs
- StylusPlugin.cs
- DataKey.cs
- ListViewHitTestInfo.cs
- DesignerObject.cs
- DetailsViewInsertEventArgs.cs
- EncodingInfo.cs