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
- PairComparer.cs
- UInt64Storage.cs
- FloaterParaClient.cs
- ItemsControlAutomationPeer.cs
- DefaultValidator.cs
- DataGridViewCellConverter.cs
- SmtpException.cs
- DataBindingsDialog.cs
- PointUtil.cs
- GridViewSelectEventArgs.cs
- HttpRequestCacheValidator.cs
- BuiltInPermissionSets.cs
- MetadataItemSerializer.cs
- GeometryModel3D.cs
- InkPresenter.cs
- EntityFrameworkVersions.cs
- CounterSample.cs
- WindowsListViewItemStartMenu.cs
- XmlQualifiedNameTest.cs
- LinkConverter.cs
- FormViewPageEventArgs.cs
- DefaultDialogButtons.cs
- SkipStoryboardToFill.cs
- DefaultObjectMappingItemCollection.cs
- CheckBox.cs
- PositiveTimeSpanValidator.cs
- AssemblyBuilder.cs
- XPathCompileException.cs
- PenThread.cs
- RegexNode.cs
- TreeChangeInfo.cs
- ToolTipAutomationPeer.cs
- StaticExtensionConverter.cs
- SemanticBasicElement.cs
- PickBranchDesigner.xaml.cs
- StrongBox.cs
- TableLayoutRowStyleCollection.cs
- EndpointBehaviorElementCollection.cs
- FactoryMaker.cs
- Translator.cs
- ParameterElementCollection.cs
- ACL.cs
- TransformValueSerializer.cs
- SmtpSection.cs
- AppDomainProtocolHandler.cs
- webeventbuffer.cs
- StatusBar.cs
- MetadataFile.cs
- FormsAuthenticationConfiguration.cs
- printdlgexmarshaler.cs
- TaiwanLunisolarCalendar.cs
- InputMethodStateChangeEventArgs.cs
- HtmlTable.cs
- LogEntrySerializer.cs
- IncrementalReadDecoders.cs
- RelatedImageListAttribute.cs
- SecurityTokenReferenceStyle.cs
- OperandQuery.cs
- ExecutionContext.cs
- DataGridRow.cs
- TopClause.cs
- MouseButton.cs
- StrongNamePublicKeyBlob.cs
- TdsParser.cs
- PlatformCulture.cs
- GlobalEventManager.cs
- SqlDataSourceView.cs
- ProtocolsConfigurationEntry.cs
- AuthorizationRuleCollection.cs
- ThousandthOfEmRealDoubles.cs
- ToolStripDropDownItemDesigner.cs
- Predicate.cs
- NetPeerTcpBinding.cs
- SettingsPropertyWrongTypeException.cs
- DynamicILGenerator.cs
- FreezableOperations.cs
- HebrewCalendar.cs
- RegexCompilationInfo.cs
- ParsedAttributeCollection.cs
- MediaElement.cs
- CookielessHelper.cs
- BamlRecordHelper.cs
- XPathAxisIterator.cs
- OneOf.cs
- XhtmlBasicImageAdapter.cs
- ImageAnimator.cs
- RegistrySecurity.cs
- WindowsContainer.cs
- SmtpReplyReaderFactory.cs
- SoapFault.cs
- WinOEToolBoxItem.cs
- ComponentRenameEvent.cs
- ProviderCollection.cs
- MSHTMLHost.cs
- Viewport2DVisual3D.cs
- isolationinterop.cs
- DecoderBestFitFallback.cs
- CodeTryCatchFinallyStatement.cs
- Font.cs
- TrackingMemoryStreamFactory.cs