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
- DataSpaceManager.cs
- ExpressionTextBox.xaml.cs
- SqlDataSourceCommandEventArgs.cs
- AdornedElementPlaceholder.cs
- DataViewManager.cs
- __ComObject.cs
- WorkflowCommandExtensionItem.cs
- IdentifierCollection.cs
- RelationshipConstraintValidator.cs
- Geometry.cs
- DoubleMinMaxAggregationOperator.cs
- CfgParser.cs
- SynchronizingStream.cs
- FontStretches.cs
- ScaleTransform3D.cs
- TableProvider.cs
- SchemaImporterExtensionsSection.cs
- RelationshipFixer.cs
- DBSchemaTable.cs
- TreeView.cs
- SingleTagSectionHandler.cs
- SR.Designer.cs
- RegionIterator.cs
- ManifestResourceInfo.cs
- TagPrefixInfo.cs
- Utils.cs
- HttpPostLocalhostServerProtocol.cs
- CompilerTypeWithParams.cs
- DataColumn.cs
- SqlMetaData.cs
- DirectoryRedirect.cs
- FontStyle.cs
- DataGridViewControlCollection.cs
- PropertyCondition.cs
- DbQueryCommandTree.cs
- DefaultBinder.cs
- Compiler.cs
- RawStylusInputReport.cs
- EdmProperty.cs
- ValueCollectionParameterReader.cs
- FixedSOMLineCollection.cs
- EventManager.cs
- GAC.cs
- EntityDataSourceWizardForm.cs
- RoutedEventArgs.cs
- OdbcHandle.cs
- Underline.cs
- ISO2022Encoding.cs
- DiscreteKeyFrames.cs
- Char.cs
- IdnMapping.cs
- ConnectionStringsExpressionBuilder.cs
- DataSourceCacheDurationConverter.cs
- WebSysDefaultValueAttribute.cs
- TrustManagerPromptUI.cs
- XamlStream.cs
- CodeTypeReference.cs
- SevenBitStream.cs
- AspNetSynchronizationContext.cs
- TextShapeableCharacters.cs
- ObjectSet.cs
- GuidelineCollection.cs
- HttpListener.cs
- SoapSchemaExporter.cs
- StringSource.cs
- StorageEntityTypeMapping.cs
- TextSimpleMarkerProperties.cs
- SqlClientWrapperSmiStream.cs
- translator.cs
- BindingCompleteEventArgs.cs
- SqlInternalConnectionTds.cs
- SslStream.cs
- URLBuilder.cs
- HttpHandlerActionCollection.cs
- Propagator.ExtentPlaceholderCreator.cs
- VariableBinder.cs
- EntitySqlException.cs
- CodeComment.cs
- UTF8Encoding.cs
- KeyedHashAlgorithm.cs
- LinqToSqlWrapper.cs
- IriParsingElement.cs
- SecurityPolicySection.cs
- DataViewManager.cs
- HighlightComponent.cs
- CreateParams.cs
- VolatileEnlistmentState.cs
- EmissiveMaterial.cs
- WebContentFormatHelper.cs
- ComponentRenameEvent.cs
- XhtmlBasicPanelAdapter.cs
- PersonalizableAttribute.cs
- Typography.cs
- SHA1.cs
- SmtpNtlmAuthenticationModule.cs
- FixedNode.cs
- WpfKnownType.cs
- AppDomainGrammarProxy.cs
- ActivityLocationReferenceEnvironment.cs
- DbReferenceCollection.cs