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
- Stylesheet.cs
- CodeTypeConstructor.cs
- EmissiveMaterial.cs
- AddInIpcChannel.cs
- InfiniteIntConverter.cs
- ImportCatalogPart.cs
- StringPropertyBuilder.cs
- WindowsRichEditRange.cs
- MarkerProperties.cs
- CompressedStack.cs
- CalendarAutoFormat.cs
- DataMisalignedException.cs
- HashRepartitionEnumerator.cs
- CodeComment.cs
- EmissiveMaterial.cs
- CompoundFileStorageReference.cs
- ActiveXSite.cs
- _CookieModule.cs
- PartialArray.cs
- XmlWriterTraceListener.cs
- NavigationWindowAutomationPeer.cs
- TagNameToTypeMapper.cs
- QueryOptionExpression.cs
- UIHelper.cs
- XmlSortKey.cs
- DataException.cs
- SqlProfileProvider.cs
- Misc.cs
- InvariantComparer.cs
- DbSetClause.cs
- Image.cs
- AQNBuilder.cs
- VisualBrush.cs
- ItemCollection.cs
- _UncName.cs
- WebScriptServiceHost.cs
- SAPIEngineTypes.cs
- CodeNamespaceCollection.cs
- AttributeCollection.cs
- SubMenuStyle.cs
- UIElementParagraph.cs
- PerformanceCounterPermissionAttribute.cs
- RemotingConfiguration.cs
- TdsParserSafeHandles.cs
- BufferedStream.cs
- StylusPointPropertyUnit.cs
- Storyboard.cs
- InheritanceContextChangedEventManager.cs
- ParameterModifier.cs
- FileUpload.cs
- InvalidAsynchronousStateException.cs
- XsltArgumentList.cs
- XpsS0ValidatingLoader.cs
- _SSPIWrapper.cs
- GestureRecognitionResult.cs
- FamilyTypefaceCollection.cs
- WebConfigurationHostFileChange.cs
- DashStyle.cs
- PropertyCondition.cs
- SchemaEntity.cs
- DataGridTableStyleMappingNameEditor.cs
- TableRowGroup.cs
- FontDialog.cs
- UnsupportedPolicyOptionsException.cs
- Baml2006ReaderContext.cs
- DecoderReplacementFallback.cs
- PeerResolverMode.cs
- PathGradientBrush.cs
- ToolStrip.cs
- mediaeventargs.cs
- BypassElement.cs
- SmtpAuthenticationManager.cs
- RemotingAttributes.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- DragCompletedEventArgs.cs
- ConfigurationSection.cs
- Throw.cs
- Help.cs
- GetWinFXPath.cs
- ArrayList.cs
- ImageInfo.cs
- ChildChangedEventArgs.cs
- IsolatedStorageFile.cs
- EntryWrittenEventArgs.cs
- TemplatePartAttribute.cs
- NullableDoubleSumAggregationOperator.cs
- RawUIStateInputReport.cs
- StrongNameKeyPair.cs
- SecurityUniqueId.cs
- DateTimePicker.cs
- SynchronousChannelMergeEnumerator.cs
- DetailsViewRow.cs
- StylusSystemGestureEventArgs.cs
- ComponentManagerBroker.cs
- DataGridSortCommandEventArgs.cs
- MailSettingsSection.cs
- HyperLinkColumn.cs
- PlatformCulture.cs
- XLinq.cs
- RowCache.cs