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
- AppDomainFactory.cs
- ViewPort3D.cs
- ListViewItemEventArgs.cs
- __FastResourceComparer.cs
- UrlAuthFailedErrorFormatter.cs
- httpapplicationstate.cs
- XmlLoader.cs
- ColumnWidthChangingEvent.cs
- SecurityHelper.cs
- LogRecordSequence.cs
- ZipArchive.cs
- Fault.cs
- TcpAppDomainProtocolHandler.cs
- LinkTarget.cs
- ListViewSelectEventArgs.cs
- ShapingEngine.cs
- RowType.cs
- WebPartEditorApplyVerb.cs
- NeutralResourcesLanguageAttribute.cs
- TdsValueSetter.cs
- MatrixTransform.cs
- TypeConverterHelper.cs
- ThemeConfigurationDialog.cs
- SystemDiagnosticsSection.cs
- MailSettingsSection.cs
- Rfc2898DeriveBytes.cs
- MetadataPropertyAttribute.cs
- FrameworkTextComposition.cs
- FileBasedResourceGroveler.cs
- ConfigXmlElement.cs
- RequestCache.cs
- ToolStripMenuItem.cs
- IISMapPath.cs
- ReachDocumentReferenceCollectionSerializer.cs
- GridViewDeletedEventArgs.cs
- EntitySqlQueryBuilder.cs
- FastEncoder.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- Rfc2898DeriveBytes.cs
- CorrelationManager.cs
- DataGridToolTip.cs
- QuaternionRotation3D.cs
- XsdBuilder.cs
- ProviderIncompatibleException.cs
- EventProxy.cs
- CheckBoxFlatAdapter.cs
- TypeGeneratedEventArgs.cs
- TransformerTypeCollection.cs
- RSAOAEPKeyExchangeDeformatter.cs
- TextParagraphCache.cs
- TreeNodeBinding.cs
- IisTraceWebEventProvider.cs
- CheckPair.cs
- RenderCapability.cs
- IteratorFilter.cs
- TheQuery.cs
- ReflectionTypeLoadException.cs
- DispatchWrapper.cs
- DocumentPaginator.cs
- EncryptedData.cs
- XhtmlStyleClass.cs
- AssemblyName.cs
- PolyLineSegment.cs
- ToolStrip.cs
- NativeMethods.cs
- DefaultValueTypeConverter.cs
- figurelengthconverter.cs
- CollectionViewSource.cs
- OletxDependentTransaction.cs
- ButtonBaseAutomationPeer.cs
- WorkflowServiceNamespace.cs
- HttpAsyncResult.cs
- DiscoveryViaBehavior.cs
- Msec.cs
- ChtmlCommandAdapter.cs
- Image.cs
- dsa.cs
- SoapIgnoreAttribute.cs
- TableItemStyle.cs
- PkcsMisc.cs
- Point4D.cs
- SafeMILHandleMemoryPressure.cs
- FileUtil.cs
- ISAPIApplicationHost.cs
- ExpressionList.cs
- NameScope.cs
- ListControlBuilder.cs
- UserMapPath.cs
- StringInfo.cs
- BridgeDataRecord.cs
- RequestCacheValidator.cs
- Button.cs
- SerialStream.cs
- HitTestWithPointDrawingContextWalker.cs
- EventLogEntryCollection.cs
- FilterQuery.cs
- UriTemplateLiteralQueryValue.cs
- DataGridRowAutomationPeer.cs
- TextRangeProviderWrapper.cs
- BaseTemplateParser.cs