Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DispatcherBuilder.cs
- VectorCollectionConverter.cs
- XmlNodeChangedEventManager.cs
- SharedStatics.cs
- GenericsInstances.cs
- FontInfo.cs
- ParentQuery.cs
- OrderedEnumerableRowCollection.cs
- DrawingContextWalker.cs
- StubHelpers.cs
- InputEventArgs.cs
- MinimizableAttributeTypeConverter.cs
- XmlSerializerNamespaces.cs
- AuthenticationManager.cs
- SqlTypesSchemaImporter.cs
- RelationshipDetailsCollection.cs
- EntityCommand.cs
- EntityAdapter.cs
- ToolStripActionList.cs
- PassportAuthenticationModule.cs
- LeaseManager.cs
- ProfileSettingsCollection.cs
- _NetRes.cs
- WorkflowViewManager.cs
- BitmapEffectDrawing.cs
- HwndTarget.cs
- WorkflowHostingEndpoint.cs
- CodeTypeParameterCollection.cs
- ObjectIDGenerator.cs
- MetadataArtifactLoader.cs
- ParameterElement.cs
- WebPartCatalogCloseVerb.cs
- DBCommand.cs
- AutoSizeToolBoxItem.cs
- WaitForChangedResult.cs
- MemoryPressure.cs
- SqlDataSourceEnumerator.cs
- InternalPolicyElement.cs
- ImageAutomationPeer.cs
- StickyNote.cs
- ComponentResourceKey.cs
- Process.cs
- XsltFunctions.cs
- ColorMap.cs
- DataServiceConfiguration.cs
- InkCollectionBehavior.cs
- XPathSelfQuery.cs
- FusionWrap.cs
- SamlSecurityToken.cs
- DateTimeFormatInfoScanner.cs
- BitmapCodecInfoInternal.cs
- EndOfStreamException.cs
- QuaternionAnimationUsingKeyFrames.cs
- KeyValueConfigurationCollection.cs
- ValueSerializer.cs
- ProviderUtil.cs
- Message.cs
- TraceSection.cs
- UpdatableGenericsFeature.cs
- FreezableCollection.cs
- Latin1Encoding.cs
- XmlDataDocument.cs
- LinqDataSourceDisposeEventArgs.cs
- Simplifier.cs
- WebPartConnectionsCancelVerb.cs
- DataGridViewUtilities.cs
- User.cs
- SynchronizedInputHelper.cs
- IPPacketInformation.cs
- SimpleType.cs
- StringFreezingAttribute.cs
- AutoGeneratedFieldProperties.cs
- InternalCache.cs
- ConfigurationManagerHelper.cs
- ResXResourceSet.cs
- UniqueIdentifierService.cs
- PrefixHandle.cs
- OdbcParameterCollection.cs
- HtmlHead.cs
- CollectionBuilder.cs
- XmlReaderSettings.cs
- GridViewRowPresenter.cs
- TypedReference.cs
- DocumentSequenceHighlightLayer.cs
- DataServiceClientException.cs
- TemplateInstanceAttribute.cs
- DataGrid.cs
- SyndicationItemFormatter.cs
- XslException.cs
- WrapPanel.cs
- ChangeNode.cs
- MetaModel.cs
- CredentialSelector.cs
- RtfNavigator.cs
- WindowAutomationPeer.cs
- EntityFrameworkVersions.cs
- BitmapSource.cs
- Mapping.cs
- XmlTypeAttribute.cs
- DesignerValidatorAdapter.cs