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
- XsltQilFactory.cs
- InstancePersistence.cs
- WindowVisualStateTracker.cs
- AnnotationHelper.cs
- PolyQuadraticBezierSegment.cs
- PixelFormat.cs
- EventMappingSettingsCollection.cs
- RequestQueue.cs
- HandlerFactoryCache.cs
- CheckoutException.cs
- OrderedDictionary.cs
- SoapAttributes.cs
- BmpBitmapEncoder.cs
- XmlMapping.cs
- FormDocumentDesigner.cs
- RijndaelCryptoServiceProvider.cs
- ErrorHandler.cs
- ServiceNotStartedException.cs
- UnsafeCollabNativeMethods.cs
- WsdlImporterElement.cs
- WindowsAltTab.cs
- DataGridDetailsPresenter.cs
- SelectionGlyph.cs
- RootBuilder.cs
- TextPattern.cs
- ComponentChangingEvent.cs
- Missing.cs
- RoutedEventConverter.cs
- Inline.cs
- AbsoluteQuery.cs
- NodeLabelEditEvent.cs
- ImageMetadata.cs
- SQLInt32Storage.cs
- FilterException.cs
- QilDataSource.cs
- ExceptionValidationRule.cs
- OrderedDictionaryStateHelper.cs
- RedistVersionInfo.cs
- EntityEntry.cs
- loginstatus.cs
- StreamGeometryContext.cs
- ProtocolsSection.cs
- VisualTreeUtils.cs
- DataBoundControlDesigner.cs
- DefaultMemberAttribute.cs
- XmlUtil.cs
- ObjectListSelectEventArgs.cs
- TrackingProfileDeserializationException.cs
- PointCollection.cs
- WsdlInspector.cs
- HelloOperationAsyncResult.cs
- MdImport.cs
- MetadataCache.cs
- Component.cs
- AxisAngleRotation3D.cs
- Canvas.cs
- SimpleApplicationHost.cs
- DeploymentSection.cs
- OutputCacheProfileCollection.cs
- OracleConnectionString.cs
- UniqueEventHelper.cs
- TraceContextRecord.cs
- AssemblyName.cs
- MappingMetadataHelper.cs
- KeyboardDevice.cs
- PrintControllerWithStatusDialog.cs
- FaultContractInfo.cs
- ExeConfigurationFileMap.cs
- XhtmlBasicSelectionListAdapter.cs
- SafeFileMappingHandle.cs
- DeviceContexts.cs
- TypedAsyncResult.cs
- ImageCodecInfo.cs
- XamlToRtfWriter.cs
- WebProxyScriptElement.cs
- XmlSchema.cs
- GridViewCancelEditEventArgs.cs
- Helper.cs
- AttachedAnnotationChangedEventArgs.cs
- XamlVector3DCollectionSerializer.cs
- RowToFieldTransformer.cs
- FreeIndexList.cs
- MexHttpsBindingCollectionElement.cs
- TransactionsSectionGroup.cs
- RectangleF.cs
- IgnoreFlushAndCloseStream.cs
- ScriptingScriptResourceHandlerSection.cs
- RuleInfoComparer.cs
- BaseAppDomainProtocolHandler.cs
- EditorAttribute.cs
- ResourceIDHelper.cs
- XmlValidatingReader.cs
- DataRelationCollection.cs
- QilReplaceVisitor.cs
- XPathNavigatorReader.cs
- FixedStringLookup.cs
- XmlSchemaAttribute.cs
- CommandField.cs
- EntityConnectionStringBuilderItem.cs
- RadioButtonList.cs