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
- KeysConverter.cs
- DecimalFormatter.cs
- TraceUtils.cs
- UrlMapping.cs
- EdmItemCollection.cs
- NameValueCollection.cs
- CodeObject.cs
- _ConnectionGroup.cs
- PageParser.cs
- SQLBinary.cs
- ProviderConnectionPoint.cs
- XPathDocumentIterator.cs
- SoapAttributes.cs
- EnumConverter.cs
- ParseNumbers.cs
- XamlPathDataSerializer.cs
- filewebrequest.cs
- XmlAttributeCollection.cs
- Int64Converter.cs
- Vector.cs
- TextTreePropertyUndoUnit.cs
- DateTimeValueSerializerContext.cs
- TaiwanLunisolarCalendar.cs
- VersionedStreamOwner.cs
- MsmqOutputChannel.cs
- DynamicValueConverter.cs
- PropertyManager.cs
- NativeRecognizer.cs
- XmlDigitalSignatureProcessor.cs
- XmlSchemaElement.cs
- HitTestWithPointDrawingContextWalker.cs
- XmlSchemaSimpleContentRestriction.cs
- BindableAttribute.cs
- TabControl.cs
- ValueUtilsSmi.cs
- ClientRoleProvider.cs
- ArithmeticException.cs
- ProfileSettingsCollection.cs
- MarshalDirectiveException.cs
- MethodInfo.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- CompilationUtil.cs
- CompressEmulationStream.cs
- XmlFileEditor.cs
- AttributeProviderAttribute.cs
- StylusPlugInCollection.cs
- SafeCryptoHandles.cs
- Brushes.cs
- xmlNames.cs
- ScrollChangedEventArgs.cs
- XmlSequenceWriter.cs
- mediaeventshelper.cs
- counter.cs
- ItemsPresenter.cs
- Freezable.cs
- Cursor.cs
- DateTimeOffset.cs
- CacheEntry.cs
- XmlCodeExporter.cs
- TypeUtil.cs
- DetailsViewCommandEventArgs.cs
- ToolStripDropTargetManager.cs
- ConfigurationSectionGroup.cs
- DropShadowBitmapEffect.cs
- Point3DCollection.cs
- Timer.cs
- ActiveXSite.cs
- Shape.cs
- SessionIDManager.cs
- Material.cs
- FilteredDataSetHelper.cs
- BamlLocalizabilityResolver.cs
- UserControl.cs
- VectorAnimationUsingKeyFrames.cs
- AssociationType.cs
- SafeEventLogWriteHandle.cs
- AmbientProperties.cs
- CachedPathData.cs
- CodeCompileUnit.cs
- CellParagraph.cs
- SmtpReplyReader.cs
- IndexingContentUnit.cs
- GeneratedContractType.cs
- CategoryValueConverter.cs
- GuidelineSet.cs
- documentsequencetextcontainer.cs
- XmlTextAttribute.cs
- PermissionSetEnumerator.cs
- Transform3D.cs
- UriScheme.cs
- srgsitem.cs
- WebServiceData.cs
- XmlIncludeAttribute.cs
- RelationshipType.cs
- SecureEnvironment.cs
- Calendar.cs
- FixedSOMSemanticBox.cs
- ProcessHostConfigUtils.cs
- File.cs
- DataRow.cs