Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / MS / Internal / documents / DocumentViewerConstants.cs / 1 / DocumentViewerConstants.cs
//---------------------------------------------------------------------------- // // Copyright (C) Microsoft Corporation. All rights reserved. // // File: DocumentViewerConstants.cs // // Description: Defines various constants used throughout DocumentViewer, // DocumentGrid and other related code. // // History: // 1/7/2005 : [....] - Created //--------------------------------------------------------------------------- namespace MS.Internal.Documents { internal static class DocumentViewerConstants { //------------------------------------------------------------------- // // Public Properties // //------------------------------------------------------------------- ////// The minimum allowed value for the Zoom property on DocumentViewer /// public static double MinimumZoom { get { return _minimumZoom; } } ////// The maximum allowed value for the Zoom property on DocumentViewer /// public static double MaximumZoom { get { return _maximumZoom; } } ////// The minimum allowed value for the Scale property on DocumentGrid /// for normal views. /// public static double MinimumScale { get { return _minimumZoom / 100.0; } } ////// The minimum allowed value for the Scale property on DocumentGrid /// for a Thumbnails view. /// public static double MinimumThumbnailsScale { get { return _minimumThumbnailsZoom / 100.0; } } ////// The maximum allowed value for the Scale property on DocumentGrid /// public static double MaximumScale { get { return _maximumZoom / 100.0; } } ////// The maximum allowed value for the MaxPagesAcross property on DocumentViewer /// public static int MaximumMaxPagesAcross { get { return _maximumMaxPagesAcross; } } //-------------------------------------------------------------------- // // Private Fields // //------------------------------------------------------------------- private const double _minimumZoom = 5.0; private const double _minimumThumbnailsZoom = 12.5; private const double _maximumZoom = 5000.0; private const int _maximumMaxPagesAcross = 32; } } // 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
- LockCookie.cs
- StorageRoot.cs
- sqlstateclientmanager.cs
- SvcFileManager.cs
- LinqDataSourceInsertEventArgs.cs
- MultiDataTrigger.cs
- ConfigurationSection.cs
- ScrollPatternIdentifiers.cs
- ConnectionManagementSection.cs
- DataPointer.cs
- Container.cs
- WhitespaceSignificantCollectionAttribute.cs
- Utils.cs
- QuotedPrintableStream.cs
- RijndaelManagedTransform.cs
- RayMeshGeometry3DHitTestResult.cs
- Pts.cs
- ISAPIRuntime.cs
- EmptyControlCollection.cs
- ILGenerator.cs
- ZeroOpNode.cs
- MemberDescriptor.cs
- Pool.cs
- sqlpipe.cs
- AuthorizationRule.cs
- WindowsPen.cs
- PropertyDescriptorCollection.cs
- ExclusiveCanonicalizationTransform.cs
- SqlConnectionFactory.cs
- IssuedTokenClientBehaviorsElement.cs
- GeneratedContractType.cs
- PasswordDeriveBytes.cs
- WebBrowserDocumentCompletedEventHandler.cs
- SafePointer.cs
- Rectangle.cs
- FormViewAutoFormat.cs
- BitmapSizeOptions.cs
- CompensationParticipant.cs
- TypeLoadException.cs
- SqlMethods.cs
- BitmapPalettes.cs
- InternalConfigRoot.cs
- _RequestCacheProtocol.cs
- XmlExtensionFunction.cs
- SqlPersonalizationProvider.cs
- FileUtil.cs
- Token.cs
- DPCustomTypeDescriptor.cs
- OuterGlowBitmapEffect.cs
- ColorAnimation.cs
- SqlInternalConnectionSmi.cs
- CompositionAdorner.cs
- ApplicationException.cs
- Baml6ConstructorInfo.cs
- StaticFileHandler.cs
- HttpResponseHeader.cs
- CLSCompliantAttribute.cs
- BasicExpandProvider.cs
- DoubleKeyFrameCollection.cs
- BitmapImage.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- Visual3DCollection.cs
- MenuItemCollection.cs
- AutoResetEvent.cs
- SecurityHelper.cs
- PrimitiveSchema.cs
- BitmapData.cs
- SecurityException.cs
- MemoryStream.cs
- RelationshipManager.cs
- ToolStripPanel.cs
- RightsManagementEncryptionTransform.cs
- _AutoWebProxyScriptHelper.cs
- EventItfInfo.cs
- ReflectEventDescriptor.cs
- TableCell.cs
- ReadWriteSpinLock.cs
- CombinedGeometry.cs
- DefaultValueTypeConverter.cs
- DocumentEventArgs.cs
- ScrollBar.cs
- UIElementIsland.cs
- Marshal.cs
- SoapIncludeAttribute.cs
- NativeCppClassAttribute.cs
- ProcessMessagesAsyncResult.cs
- Atom10FormatterFactory.cs
- CfgArc.cs
- ActivatedMessageQueue.cs
- MenuItem.cs
- basevalidator.cs
- nulltextcontainer.cs
- Selection.cs
- DefaultEvaluationContext.cs
- BuildProvider.cs
- ParameterCollection.cs
- ReceiveActivity.cs
- AssociationSet.cs
- BmpBitmapDecoder.cs
- HierarchicalDataTemplate.cs