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
- TreeNode.cs
- SafeNativeMethods.cs
- DataGridViewCellConverter.cs
- DocumentGrid.cs
- Cursors.cs
- TextSegment.cs
- OleServicesContext.cs
- UIPropertyMetadata.cs
- SmiEventSink.cs
- Rotation3D.cs
- PrinterSettings.cs
- Calendar.cs
- CmsInterop.cs
- PageAsyncTaskManager.cs
- XmlReader.cs
- HttpWriter.cs
- SimpleHandlerFactory.cs
- DivideByZeroException.cs
- LineInfo.cs
- WebSysDisplayNameAttribute.cs
- ObjectViewListener.cs
- ADConnectionHelper.cs
- MemberRelationshipService.cs
- ConcurrentQueue.cs
- DesignerActionHeaderItem.cs
- ChangePassword.cs
- ServiceReference.cs
- MimeBasePart.cs
- BezierSegment.cs
- SignatureToken.cs
- DataObjectSettingDataEventArgs.cs
- UrlRoutingHandler.cs
- webclient.cs
- NavigationPropertySingletonExpression.cs
- TextProperties.cs
- GlyphingCache.cs
- RequestResizeEvent.cs
- WebBrowserPermission.cs
- SHA1Managed.cs
- JsonXmlDataContract.cs
- NullEntityWrapper.cs
- KnownColorTable.cs
- UTF8Encoding.cs
- SqlAliasesReferenced.cs
- BamlCollectionHolder.cs
- AppearanceEditorPart.cs
- NegatedCellConstant.cs
- ErrorReporting.cs
- CqlErrorHelper.cs
- DesignerProperties.cs
- CodeValidator.cs
- ExtenderProvidedPropertyAttribute.cs
- SystemIcmpV6Statistics.cs
- CommonObjectSecurity.cs
- TextFindEngine.cs
- SqlConnectionPoolGroupProviderInfo.cs
- Byte.cs
- PropertyMapper.cs
- CqlLexer.cs
- ToolTip.cs
- EventQueueState.cs
- DoubleLinkListEnumerator.cs
- ItemsControl.cs
- CodeRegionDirective.cs
- XmlSerializerFactory.cs
- ListViewItem.cs
- MetadataPropertyAttribute.cs
- PackWebResponse.cs
- SchemaInfo.cs
- TypeSystem.cs
- FaultConverter.cs
- Int32Rect.cs
- QilNode.cs
- x509utils.cs
- PropertyToken.cs
- TableTextElementCollectionInternal.cs
- NonParentingControl.cs
- MappedMetaModel.cs
- XPathArrayIterator.cs
- FormatConvertedBitmap.cs
- ProjectionCamera.cs
- XhtmlBasicPageAdapter.cs
- XmlDigitalSignatureProcessor.cs
- Validator.cs
- HttpFileCollection.cs
- IconConverter.cs
- CategoryGridEntry.cs
- StylusButtonEventArgs.cs
- PriorityBindingExpression.cs
- NotificationContext.cs
- EventSchemaTraceListener.cs
- PropertyBuilder.cs
- ClientBuildManagerCallback.cs
- SqlReorderer.cs
- HtmlEmptyTagControlBuilder.cs
- Debug.cs
- ObjectQueryProvider.cs
- MailDefinition.cs
- DataGridHeaderBorder.cs
- EntityTypeBase.cs