Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- WebControlsSection.cs
- ServiceEndpoint.cs
- NavigationProperty.cs
- UIntPtr.cs
- TextSelectionProcessor.cs
- EventNotify.cs
- X509Certificate.cs
- UriSection.cs
- EncoderExceptionFallback.cs
- Matrix3DConverter.cs
- EventMap.cs
- WriteableBitmap.cs
- RoleManagerModule.cs
- GeometryGroup.cs
- WebPart.cs
- CallbackHandler.cs
- CollectionConverter.cs
- EffectiveValueEntry.cs
- AdapterUtil.cs
- VisualBrush.cs
- XmlSchemaDatatype.cs
- MenuBase.cs
- ExpressionNode.cs
- TextPointerBase.cs
- JapaneseCalendar.cs
- StrongName.cs
- ComboBoxRenderer.cs
- MSAAWinEventWrap.cs
- XpsException.cs
- LinkGrep.cs
- RawStylusInputCustomData.cs
- CqlQuery.cs
- DebugTracing.cs
- OdbcError.cs
- BitmapEffectDrawingContent.cs
- PointHitTestResult.cs
- BitConverter.cs
- WrapperSecurityCommunicationObject.cs
- ColumnBinding.cs
- FieldDescriptor.cs
- BitmapPalettes.cs
- TogglePattern.cs
- X509ChainPolicy.cs
- CodeDirectoryCompiler.cs
- CodeMethodInvokeExpression.cs
- ConfigXmlComment.cs
- NetworkCredential.cs
- LinqExpressionNormalizer.cs
- Certificate.cs
- TempFiles.cs
- HttpContextWrapper.cs
- TransformedBitmap.cs
- SymbolMethod.cs
- CodeFieldReferenceExpression.cs
- COM2EnumConverter.cs
- SourceSwitch.cs
- SchemaNotation.cs
- MessageEncoder.cs
- Size.cs
- MouseCaptureWithinProperty.cs
- HtmlInputSubmit.cs
- StrokeFIndices.cs
- FunctionMappingTranslator.cs
- PhysicalOps.cs
- JoinSymbol.cs
- DictionaryBase.cs
- CqlLexer.cs
- Security.cs
- Highlights.cs
- ResetableIterator.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- ColumnResizeUndoUnit.cs
- InvalidComObjectException.cs
- ActiveDocumentEvent.cs
- CompiledQueryCacheEntry.cs
- SecurityKeyIdentifierClause.cs
- NamedPermissionSet.cs
- ListBindingConverter.cs
- LocatorPart.cs
- XmlSignificantWhitespace.cs
- UnSafeCharBuffer.cs
- OperationFormatStyle.cs
- LogLogRecordEnumerator.cs
- ViewPort3D.cs
- Timer.cs
- CellParaClient.cs
- Privilege.cs
- MulticastIPAddressInformationCollection.cs
- DebugView.cs
- MetadataCache.cs
- LowerCaseStringConverter.cs
- SamlConstants.cs
- Attributes.cs
- AspNetRouteServiceHttpHandler.cs
- GridItemCollection.cs
- AnonymousIdentificationModule.cs
- IndividualDeviceConfig.cs
- SignedXml.cs
- FullTextLine.cs
- SqlIdentifier.cs