Code:
/ 4.0 / 4.0 / 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. //---------------------------------------------------------------------------- // // 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
- _Semaphore.cs
- BaseTreeIterator.cs
- PseudoWebRequest.cs
- WebBrowserContainer.cs
- GraphicsState.cs
- AuthenticodeSignatureInformation.cs
- RangeValuePattern.cs
- DataGridViewImageCell.cs
- ControlParameter.cs
- LinearQuaternionKeyFrame.cs
- BoundColumn.cs
- ReadOnlyCollectionBase.cs
- PageCatalogPart.cs
- SafeLibraryHandle.cs
- KeySplineConverter.cs
- MulticastNotSupportedException.cs
- XPathNode.cs
- TextTreeNode.cs
- CodeCommentStatementCollection.cs
- NativeMethodsOther.cs
- XmlSerializationReader.cs
- panel.cs
- XslTransform.cs
- HandleCollector.cs
- BufferModesCollection.cs
- CLSCompliantAttribute.cs
- ObjectCacheSettings.cs
- UnSafeCharBuffer.cs
- DynamicMetaObjectBinder.cs
- DSASignatureDeformatter.cs
- UrlPath.cs
- HttpPostedFileBase.cs
- UnhandledExceptionEventArgs.cs
- SimpleParser.cs
- XmlTextReaderImplHelpers.cs
- XmlDocumentSurrogate.cs
- StateDesignerConnector.cs
- EncodingDataItem.cs
- EpmCustomContentDeSerializer.cs
- SafeFileMapViewHandle.cs
- latinshape.cs
- PhonemeConverter.cs
- Base64Encoder.cs
- Drawing.cs
- LinqDataSourceInsertEventArgs.cs
- InstanceLockTracking.cs
- DecimalFormatter.cs
- PerformanceCounterLib.cs
- PrintDialog.cs
- BCLDebug.cs
- PathFigureCollection.cs
- CompositeFontFamily.cs
- ConfigurationElement.cs
- PartManifestEntry.cs
- GridViewRow.cs
- AVElementHelper.cs
- ServiceHostingEnvironment.cs
- RectAnimationClockResource.cs
- TypeTypeConverter.cs
- ExclusiveHandle.cs
- HttpRequestTraceRecord.cs
- TrackBar.cs
- ObjectAnimationBase.cs
- XmlDictionaryReader.cs
- TableSectionStyle.cs
- XmlBufferReader.cs
- ReferencedCollectionType.cs
- XmlSchemaSimpleContentRestriction.cs
- IndentTextWriter.cs
- Variant.cs
- SecurityIdentifierElement.cs
- DocumentApplicationJournalEntry.cs
- SqlComparer.cs
- BamlReader.cs
- ProfessionalColors.cs
- OrthographicCamera.cs
- SubstitutionList.cs
- DataGridHeaderBorder.cs
- HWStack.cs
- TrustManager.cs
- ConfigurationSection.cs
- DirectoryObjectSecurity.cs
- NotImplementedException.cs
- MultiTargetingUtil.cs
- DataTemplateSelector.cs
- Camera.cs
- DataControlCommands.cs
- ToolStripMenuItem.cs
- LayoutManager.cs
- TableItemPatternIdentifiers.cs
- InfoCardService.cs
- SqlNode.cs
- ActiveDocumentEvent.cs
- OverrideMode.cs
- ColorContext.cs
- ActivityDesigner.cs
- MembershipSection.cs
- OleDbPermission.cs
- UnsafeNativeMethods.cs
- XmlSchemaException.cs