Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / 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 : jdersch - 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. //---------------------------------------------------------------------------- // // 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 : jdersch - 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
- SQLInt16Storage.cs
- PublisherMembershipCondition.cs
- Point4DValueSerializer.cs
- ToolStripCustomTypeDescriptor.cs
- ImmutableCollection.cs
- HttpVersion.cs
- TypedTableBaseExtensions.cs
- DataMisalignedException.cs
- LinqToSqlWrapper.cs
- ContextItem.cs
- ThemeConfigurationDialog.cs
- Pkcs7Signer.cs
- ConfigurationSchemaErrors.cs
- DrawItemEvent.cs
- RestClientProxyHandler.cs
- MetadataWorkspace.cs
- ToolboxService.cs
- BamlReader.cs
- TaskFileService.cs
- SHA256Managed.cs
- AppDomainFactory.cs
- WebConfigurationHostFileChange.cs
- NameTable.cs
- EntityClassGenerator.cs
- TypeBuilderInstantiation.cs
- PathSegmentCollection.cs
- WebBrowserUriTypeConverter.cs
- TableRowGroup.cs
- SectionRecord.cs
- DelegateHelpers.Generated.cs
- IconBitmapDecoder.cs
- ProxyDataContractResolver.cs
- CodePageUtils.cs
- RemoteWebConfigurationHost.cs
- ActivityCodeGenerator.cs
- TypeSource.cs
- HtmlTableRowCollection.cs
- SettingsAttributes.cs
- TransactionScope.cs
- PageThemeParser.cs
- SuppressIldasmAttribute.cs
- TreeChangeInfo.cs
- XmlConverter.cs
- RowsCopiedEventArgs.cs
- SerialPort.cs
- FrameworkReadOnlyPropertyMetadata.cs
- ClientUrlResolverWrapper.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- CodeActivityContext.cs
- IdlingCommunicationPool.cs
- SafeBitVector32.cs
- DataColumnPropertyDescriptor.cs
- SchemaObjectWriter.cs
- SiteMapProvider.cs
- ButtonDesigner.cs
- LZCodec.cs
- SettingsBindableAttribute.cs
- MultilineStringConverter.cs
- FigureParagraph.cs
- DocumentPage.cs
- XmlSchemaGroup.cs
- RelatedEnd.cs
- TransactionScope.cs
- NamespaceCollection.cs
- SessionEndingCancelEventArgs.cs
- Types.cs
- PropertyValueChangedEvent.cs
- Baml6ConstructorInfo.cs
- ISO2022Encoding.cs
- BridgeDataRecord.cs
- OuterGlowBitmapEffect.cs
- AnimationLayer.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ResourceWriter.cs
- XhtmlTextWriter.cs
- ProgressPage.cs
- SynchronizationContext.cs
- CharEntityEncoderFallback.cs
- IsolatedStorageException.cs
- SetMemberBinder.cs
- ProcessInfo.cs
- UnsafeNativeMethods.cs
- DefaultTextStoreTextComposition.cs
- DecoderBestFitFallback.cs
- ImageButton.cs
- SafeBitVector32.cs
- Timeline.cs
- ExportOptions.cs
- ContentTextAutomationPeer.cs
- ConfigurationElementProperty.cs
- DSACryptoServiceProvider.cs
- UIElement.cs
- UnhandledExceptionEventArgs.cs
- DataRowChangeEvent.cs
- ICspAsymmetricAlgorithm.cs
- PathNode.cs
- NavigationService.cs
- CommentGlyph.cs
- SafeEventLogWriteHandle.cs
- XMLSchema.cs