Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / TrustUi / MS / Internal / documents / Application / DocumentApplicationState.cs / 1 / DocumentApplicationState.cs
//----------------------------------------------------------------------------
//
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//
// Description: Represents the current UI state of the application.
//
// History:
// 06/24/2005 - [....] created
//
//---------------------------------------------------------------------------
using MS.Internal.PresentationUI;
using System;
namespace MS.Internal.Documents.Application
{
[Serializable]
[FriendAccessAllowed]
internal struct DocumentApplicationState
{
//-----------------------------------------------------
//
// Constructors
//
//-----------------------------------------------------
///
/// Constructor
///
/// Zoom value
/// Horizontal offset within the document
/// Vertical offset within the document
/// Number of adjacent pages displayed
public DocumentApplicationState(double zoom, double horizontalOffset, double verticalOffset,
int maxPagesAcross)
{
// set local values
_zoom = zoom;
_horizontalOffset = horizontalOffset;
_verticalOffset = verticalOffset;
_maxPagesAcross = maxPagesAcross;
}
//------------------------------------------------------
//
// Public Properties
//
//-----------------------------------------------------
#region Public Properties
///
/// Zoom value
///
public double Zoom
{
get
{
return _zoom;
}
}
///
/// Horizontal offset within the document
///
public double HorizontalOffset
{
get
{
return _horizontalOffset;
}
}
///
/// Vertical offset within the document
///
public double VerticalOffset
{
get
{
return _verticalOffset;
}
}
///
/// Number of adjacent pages displayed
///
public int MaxPagesAcross
{
get
{
return _maxPagesAcross;
}
}
#endregion Public Properties
//------------------------------------------------------
//
// Private Fields
//
//------------------------------------------------------
#region Private Fields
private double _zoom;
private double _horizontalOffset;
private double _verticalOffset;
private int _maxPagesAcross;
#endregion Private Fields
}
}
// 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
- DetailsViewModeEventArgs.cs
- DateTimeOffsetAdapter.cs
- DockPatternIdentifiers.cs
- ConditionCollection.cs
- ToolboxBitmapAttribute.cs
- KeyInterop.cs
- EmulateRecognizeCompletedEventArgs.cs
- DataQuery.cs
- SiteMapDataSource.cs
- DataGridClipboardHelper.cs
- TraceContextEventArgs.cs
- Positioning.cs
- ProtocolElementCollection.cs
- DataServiceConfiguration.cs
- Timer.cs
- VisualStyleElement.cs
- PointAnimationUsingPath.cs
- ProfessionalColors.cs
- GridViewUpdatedEventArgs.cs
- HtmlWindow.cs
- GlyphRunDrawing.cs
- XmlChildEnumerator.cs
- InvalidDataException.cs
- SharedPerformanceCounter.cs
- XmlLinkedNode.cs
- SiteMap.cs
- HttpConfigurationSystem.cs
- Transform.cs
- EndpointAddressAugust2004.cs
- TypeResolver.cs
- FrameDimension.cs
- SupportsEventValidationAttribute.cs
- DbDeleteCommandTree.cs
- ArrangedElementCollection.cs
- QilIterator.cs
- CommandManager.cs
- RequiredFieldValidator.cs
- XmlPreloadedResolver.cs
- SelectionUIHandler.cs
- SmtpCommands.cs
- _ScatterGatherBuffers.cs
- ProjectionNode.cs
- BufferedGraphics.cs
- TableCell.cs
- QueryableFilterUserControl.cs
- sqlstateclientmanager.cs
- WindowsFormsHostPropertyMap.cs
- TrustLevelCollection.cs
- WebPartConnectionCollection.cs
- Vector3DConverter.cs
- EntityClientCacheEntry.cs
- TrackingStringDictionary.cs
- NetworkStream.cs
- QilScopedVisitor.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- PrivateFontCollection.cs
- WebEventTraceProvider.cs
- SqlGatherConsumedAliases.cs
- PathStreamGeometryContext.cs
- DataGridViewAddColumnDialog.cs
- WorkflowInstanceContextProvider.cs
- ValueUtilsSmi.cs
- EventBookmark.cs
- StreamInfo.cs
- SerialErrors.cs
- OdbcUtils.cs
- Matrix3D.cs
- SessionEndingEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- InputReport.cs
- HttpResponseInternalWrapper.cs
- InfoCardProofToken.cs
- SqlDataSourceCommandEventArgs.cs
- FormViewDeleteEventArgs.cs
- AVElementHelper.cs
- XmlHierarchicalDataSourceView.cs
- ProfilePropertyNameValidator.cs
- MissingSatelliteAssemblyException.cs
- GeometryGroup.cs
- PrimitiveRenderer.cs
- DataObjectEventArgs.cs
- FacetEnabledSchemaElement.cs
- ValueType.cs
- TextRunProperties.cs
- UniformGrid.cs
- MeasurementDCInfo.cs
- InvalidPrinterException.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DropDownHolder.cs
- OdbcConnectionOpen.cs
- ContentIterators.cs
- IntSecurity.cs
- ByteStorage.cs
- DataGridSortingEventArgs.cs
- TargetControlTypeAttribute.cs
- X509ClientCertificateAuthenticationElement.cs
- ErrorHandlingReceiver.cs
- Stack.cs
- AdCreatedEventArgs.cs
- ConnectionStringsExpressionBuilder.cs