Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / MS / Internal / documents / DocumentViewerConstants.cs / 1305600 / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EventLogEntryCollection.cs
- HtmlInputHidden.cs
- DesignerCommandSet.cs
- securitymgrsite.cs
- SQLDecimalStorage.cs
- DBParameter.cs
- ZoneLinkButton.cs
- CookieHandler.cs
- Root.cs
- formatter.cs
- Helpers.cs
- LicenseException.cs
- ISFClipboardData.cs
- PropertyDescriptorGridEntry.cs
- ServiceOperation.cs
- InitiatorSessionSymmetricMessageSecurityProtocol.cs
- ArcSegment.cs
- ValidatorCompatibilityHelper.cs
- ObjectKeyFrameCollection.cs
- AtomContentProperty.cs
- SqlConnectionPoolProviderInfo.cs
- VariantWrapper.cs
- ReadOnlyObservableCollection.cs
- ByeMessageCD1.cs
- _ListenerAsyncResult.cs
- WorkflowDesignerMessageFilter.cs
- ManifestResourceInfo.cs
- ClientSession.cs
- BamlWriter.cs
- UniqueIdentifierService.cs
- ContentPropertyAttribute.cs
- EntityViewGenerationAttribute.cs
- TagPrefixCollection.cs
- tibetanshape.cs
- LongValidator.cs
- SinglePhaseEnlistment.cs
- Formatter.cs
- TreeNodeBindingCollection.cs
- XamlInterfaces.cs
- ApplicationDirectoryMembershipCondition.cs
- SoapSchemaExporter.cs
- CompilerWrapper.cs
- ModuleElement.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- GlyphInfoList.cs
- RemoteArgument.cs
- AutomationFocusChangedEventArgs.cs
- WindowsFormsHelpers.cs
- MatcherBuilder.cs
- OutputCacheModule.cs
- Rotation3D.cs
- PropertyDescriptors.cs
- compensatingcollection.cs
- TrackingRecord.cs
- IisTraceListener.cs
- MappingSource.cs
- GenericEnumerator.cs
- ReliabilityContractAttribute.cs
- NamespaceMapping.cs
- PathFigureCollectionValueSerializer.cs
- CodeAccessPermission.cs
- WindowsListViewScroll.cs
- RuntimeConfigLKG.cs
- EdmRelationshipNavigationPropertyAttribute.cs
- DefaultValueAttribute.cs
- PartDesigner.cs
- OleDbFactory.cs
- UriPrefixTable.cs
- StatusBar.cs
- OdbcReferenceCollection.cs
- ProcessModuleCollection.cs
- Security.cs
- PropertyItem.cs
- SmtpFailedRecipientsException.cs
- StatusBarItemAutomationPeer.cs
- ReadOnlyPermissionSet.cs
- XmlComment.cs
- UTF8Encoding.cs
- IsolatedStorage.cs
- CookieHandler.cs
- EraserBehavior.cs
- CommonXSendMessage.cs
- PersonalizationState.cs
- MethodCallTranslator.cs
- InstanceOwnerException.cs
- MemberAccessException.cs
- SamlAuthenticationStatement.cs
- SSmlParser.cs
- SiteMapPathDesigner.cs
- GeometryGroup.cs
- DetailsViewPageEventArgs.cs
- ResourceDictionary.cs
- VectorAnimation.cs
- HostingEnvironmentSection.cs
- CodeNamespaceImportCollection.cs
- DrawListViewColumnHeaderEventArgs.cs
- RenderingBiasValidation.cs
- PostBackOptions.cs
- PreviewPageInfo.cs
- Tracking.cs