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
- DataBoundControl.cs
- LinearKeyFrames.cs
- Calendar.cs
- DetailsViewAutoFormat.cs
- GrowingArray.cs
- TCEAdapterGenerator.cs
- FullTextState.cs
- CodePageEncoding.cs
- ObjectRef.cs
- x509store.cs
- WriteableBitmap.cs
- XmlAggregates.cs
- DataColumnCollection.cs
- ConstantCheck.cs
- NamespaceQuery.cs
- TitleStyle.cs
- WindowsNonControl.cs
- PropertyEntry.cs
- TransportSecurityProtocolFactory.cs
- RootBuilder.cs
- DiffuseMaterial.cs
- XmlSchemaComplexContentRestriction.cs
- sqlstateclientmanager.cs
- PrintDialogDesigner.cs
- IndentedWriter.cs
- StorageMappingFragment.cs
- XmlSerializationWriter.cs
- StorageTypeMapping.cs
- DatatypeImplementation.cs
- ClientSettingsProvider.cs
- StyleCollection.cs
- PointLightBase.cs
- InvokePattern.cs
- CalloutQueueItem.cs
- ConnectionStringSettings.cs
- CodeValidator.cs
- XmlSchemaSimpleContentRestriction.cs
- SchemaImporterExtension.cs
- PasswordPropertyTextAttribute.cs
- Viewport3DAutomationPeer.cs
- ModelItemCollectionImpl.cs
- ShimAsPublicXamlType.cs
- ArgumentException.cs
- DesignerWebPartChrome.cs
- DataPagerFieldCommandEventArgs.cs
- DesignerTransaction.cs
- XmlComment.cs
- EventEntry.cs
- WindowsGraphicsCacheManager.cs
- SelectingProviderEventArgs.cs
- DataViewManagerListItemTypeDescriptor.cs
- Util.cs
- AuthorizationRule.cs
- ColorAnimationUsingKeyFrames.cs
- CultureInfoConverter.cs
- CompositeFontInfo.cs
- PolyLineSegment.cs
- ArraySubsetEnumerator.cs
- EntityContainerEmitter.cs
- InputMethod.cs
- SqlEnums.cs
- WebPartEditVerb.cs
- SqlAliasesReferenced.cs
- COM2PropertyDescriptor.cs
- LinkLabelLinkClickedEvent.cs
- IconHelper.cs
- TrustManager.cs
- Graphics.cs
- Privilege.cs
- FlowDocumentScrollViewer.cs
- StickyNote.cs
- ProtectedProviderSettings.cs
- HybridDictionary.cs
- TextViewBase.cs
- TextReader.cs
- RuleInfoComparer.cs
- MD5HashHelper.cs
- Icon.cs
- NullEntityWrapper.cs
- TableParagraph.cs
- SmtpException.cs
- ProcessHostConfigUtils.cs
- _Win32.cs
- SqlConnectionFactory.cs
- TreeWalker.cs
- OdbcCommand.cs
- PrimarySelectionAdorner.cs
- SystemColors.cs
- ExecutionPropertyManager.cs
- XsdValidatingReader.cs
- VideoDrawing.cs
- ClientBuildManagerCallback.cs
- UpdateTranslator.cs
- OleDbPermission.cs
- KeyEventArgs.cs
- WpfGeneratedKnownTypes.cs
- LookupBindingPropertiesAttribute.cs
- PerformanceCounters.cs
- TransformerInfoCollection.cs
- ConfigPathUtility.cs