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
- Property.cs
- DynamicDataRouteHandler.cs
- IndexerNameAttribute.cs
- BuildProvidersCompiler.cs
- Site.cs
- ChangeInterceptorAttribute.cs
- OrderPreservingPipeliningSpoolingTask.cs
- StylusPointProperties.cs
- ImageSource.cs
- GlyphRun.cs
- SafeMarshalContext.cs
- DocumentSequenceHighlightLayer.cs
- XmlSchemaGroupRef.cs
- XNodeValidator.cs
- XmlNodeList.cs
- ColorContextHelper.cs
- PointAnimationUsingKeyFrames.cs
- GPPOINTF.cs
- StorageRoot.cs
- Glyph.cs
- ObjectViewQueryResultData.cs
- Highlights.cs
- LoadedOrUnloadedOperation.cs
- GeneratedCodeAttribute.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- TextProperties.cs
- Style.cs
- JavaScriptString.cs
- CodeCatchClauseCollection.cs
- CssTextWriter.cs
- IntPtr.cs
- ipaddressinformationcollection.cs
- MarkupCompiler.cs
- FieldBuilder.cs
- XmlDesigner.cs
- StringToken.cs
- PolicyLevel.cs
- XmlImplementation.cs
- ChineseLunisolarCalendar.cs
- ThreadPool.cs
- ResourcePermissionBase.cs
- FastPropertyAccessor.cs
- CallContext.cs
- COM2ComponentEditor.cs
- SqlMethodAttribute.cs
- ResourceBinder.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- SqlExpressionNullability.cs
- UnmanagedHandle.cs
- MetadataItem.cs
- ProfileEventArgs.cs
- ColorContextHelper.cs
- LayoutEditorPart.cs
- InternalControlCollection.cs
- DoubleLinkListEnumerator.cs
- RuntimeCompatibilityAttribute.cs
- ControlParameter.cs
- TheQuery.cs
- Label.cs
- GroupLabel.cs
- EmptyControlCollection.cs
- SecurityResources.cs
- DataTableNewRowEvent.cs
- ConnectionStringsExpressionBuilder.cs
- SerialStream.cs
- DataGridViewTopLeftHeaderCell.cs
- ScriptMethodAttribute.cs
- StyleReferenceConverter.cs
- XmlFormatWriterGenerator.cs
- JapaneseLunisolarCalendar.cs
- EntityCollection.cs
- PageFunction.cs
- SchemaTypeEmitter.cs
- ActivityDesigner.cs
- BoundColumn.cs
- SortExpressionBuilder.cs
- XmlSchemaIdentityConstraint.cs
- SignedXml.cs
- AssemblyBuilder.cs
- ProgressPage.cs
- BinHexDecoder.cs
- CollectionChangeEventArgs.cs
- securitycriticaldata.cs
- GridViewCellAutomationPeer.cs
- ManipulationDevice.cs
- DataBoundLiteralControl.cs
- DbConnectionInternal.cs
- ListBox.cs
- StylusPointProperty.cs
- GeometryModel3D.cs
- MemberHolder.cs
- ConfigurationValidatorBase.cs
- UxThemeWrapper.cs
- ListViewSelectEventArgs.cs
- ColorBuilder.cs
- InheritanceAttribute.cs
- InputLanguageProfileNotifySink.cs
- NativeMethods.cs
- MatrixTransform.cs
- StrokeCollectionConverter.cs