Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- securestring.cs
- TypeGeneratedEventArgs.cs
- IgnorePropertiesAttribute.cs
- ProcessStartInfo.cs
- XmlSchemaType.cs
- TabRenderer.cs
- XmlAutoDetectWriter.cs
- JpegBitmapEncoder.cs
- ContractMapping.cs
- IfAction.cs
- PrintController.cs
- DropDownButton.cs
- ToolStripItemClickedEventArgs.cs
- Barrier.cs
- AspNetRouteServiceHttpHandler.cs
- BufferAllocator.cs
- TripleDES.cs
- XPathQilFactory.cs
- TextRangeProviderWrapper.cs
- x509store.cs
- WindowClosedEventArgs.cs
- AutomationPeer.cs
- XPathDocumentIterator.cs
- PackageRelationshipSelector.cs
- SqlTransaction.cs
- StyleXamlParser.cs
- DBCSCodePageEncoding.cs
- AssemblyAssociatedContentFileAttribute.cs
- MimePart.cs
- ClientRoleProvider.cs
- SafeCryptHandles.cs
- Decorator.cs
- ValidationHelper.cs
- UnauthorizedWebPart.cs
- Type.cs
- ProfileGroupSettingsCollection.cs
- XamlPoint3DCollectionSerializer.cs
- DesignerTextBoxAdapter.cs
- XmlKeywords.cs
- ApplicationManager.cs
- SerializerDescriptor.cs
- DiscoveryMessageSequence11.cs
- ActivityBindForm.cs
- CookieHandler.cs
- RenderData.cs
- HttpClientCertificate.cs
- DataGridViewButtonColumn.cs
- EpmHelper.cs
- SortExpressionBuilder.cs
- XhtmlBasicFormAdapter.cs
- TextPointer.cs
- EntitySetRetriever.cs
- ConfigXmlElement.cs
- NodeLabelEditEvent.cs
- ApplyImportsAction.cs
- DefaultClaimSet.cs
- WindowsToolbarAsMenu.cs
- CollectionMarkupSerializer.cs
- PersonalizationProviderHelper.cs
- InOutArgument.cs
- AnnotationHighlightLayer.cs
- Int32Converter.cs
- List.cs
- NamedPermissionSet.cs
- MetaModel.cs
- ToolStripLabel.cs
- HMACSHA1.cs
- Perspective.cs
- ContextStaticAttribute.cs
- MultiByteCodec.cs
- PrivilegeNotHeldException.cs
- HtmlMeta.cs
- TaskHelper.cs
- SimpleModelProvider.cs
- CollectionDataContract.cs
- Grant.cs
- DiscoveryDocumentSerializer.cs
- OpenFileDialog.cs
- Form.cs
- Utils.cs
- HttpCookieCollection.cs
- MailBnfHelper.cs
- BaseDataList.cs
- BeginSelectCardRequest.cs
- ScrollBarRenderer.cs
- IPAddressCollection.cs
- SoundPlayerAction.cs
- Model3DGroup.cs
- XmlSchemaComplexContentExtension.cs
- BasicSecurityProfileVersion.cs
- ListViewGroupItemCollection.cs
- AssemblyCollection.cs
- SystemPens.cs
- EntityKeyElement.cs
- RemotingConfigParser.cs
- HtmlButton.cs
- AffineTransform3D.cs
- securitymgrsite.cs
- DataContractSerializer.cs
- FileLoadException.cs