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
- FunctionUpdateCommand.cs
- Model3DCollection.cs
- ListMarkerSourceInfo.cs
- SqlFactory.cs
- LogicalTreeHelper.cs
- ModelTypeConverter.cs
- FontDialog.cs
- ConnectionPointCookie.cs
- Image.cs
- ApplicationBuildProvider.cs
- IntegerValidator.cs
- TreeNodeStyle.cs
- ScrollProviderWrapper.cs
- SqlClientWrapperSmiStream.cs
- ProfilePropertySettingsCollection.cs
- Internal.cs
- LongTypeConverter.cs
- UnsupportedPolicyOptionsException.cs
- WorkItem.cs
- TextTreeTextElementNode.cs
- WebReferencesBuildProvider.cs
- RangeValidator.cs
- MultiAsyncResult.cs
- OdbcConnection.cs
- PriorityQueue.cs
- SettingsSavedEventArgs.cs
- IconBitmapDecoder.cs
- FeatureSupport.cs
- BypassElementCollection.cs
- WebPartVerb.cs
- X509ChainPolicy.cs
- CqlLexerHelpers.cs
- CompoundFileStorageReference.cs
- ObjectCacheHost.cs
- MasterPage.cs
- BindingsCollection.cs
- SupportingTokenParameters.cs
- ResourceDisplayNameAttribute.cs
- ReachVisualSerializerAsync.cs
- PeerApplicationLaunchInfo.cs
- DbConnectionPoolIdentity.cs
- ErasingStroke.cs
- EntitySqlException.cs
- Point.cs
- sqlcontext.cs
- StatusBarPanelClickEvent.cs
- Schema.cs
- CommandHelpers.cs
- ReflectionServiceProvider.cs
- TemplateContent.cs
- UIElement3DAutomationPeer.cs
- GridViewSortEventArgs.cs
- formatstringdialog.cs
- RenderData.cs
- Span.cs
- Psha1DerivedKeyGenerator.cs
- QualificationDataAttribute.cs
- VariableExpressionConverter.cs
- PagedDataSource.cs
- keycontainerpermission.cs
- MimeTypeMapper.cs
- NativeMethods.cs
- GenericEnumConverter.cs
- HealthMonitoringSection.cs
- DesignerCategoryAttribute.cs
- Duration.cs
- SendMailErrorEventArgs.cs
- ReadOnlyHierarchicalDataSource.cs
- ZipFileInfo.cs
- DesignTimeTemplateParser.cs
- DictionaryBase.cs
- TreeNodeBindingCollection.cs
- ObjectStateEntry.cs
- Panel.cs
- MimePart.cs
- Literal.cs
- DeviceContext.cs
- TagPrefixCollection.cs
- ProtocolsConfigurationHandler.cs
- TableItemPattern.cs
- ChannelBase.cs
- ScaleTransform3D.cs
- SqlDataAdapter.cs
- CalendarDay.cs
- TableHeaderCell.cs
- XPathExpr.cs
- TextSpanModifier.cs
- MultiTrigger.cs
- Pair.cs
- SQLGuid.cs
- Char.cs
- ForceCopyBuildProvider.cs
- AndMessageFilterTable.cs
- DataSpaceManager.cs
- ChildTable.cs
- GlyphElement.cs
- LazyTextWriterCreator.cs
- ListBindingHelper.cs
- BinaryUtilClasses.cs
- Int64.cs