Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- RadialGradientBrush.cs
- XmlDataSourceView.cs
- SQLDecimalStorage.cs
- PrintDialogDesigner.cs
- CapabilitiesUse.cs
- ItemsControlAutomationPeer.cs
- ExeConfigurationFileMap.cs
- storepermission.cs
- CheckBox.cs
- PagePropertiesChangingEventArgs.cs
- ProxySimple.cs
- MutexSecurity.cs
- MediaElementAutomationPeer.cs
- StylusPoint.cs
- ApplicationGesture.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- WasAdminWrapper.cs
- ButtonField.cs
- PanelStyle.cs
- KeyboardDevice.cs
- DefaultSerializationProviderAttribute.cs
- ConfigXmlDocument.cs
- Axis.cs
- ScriptingScriptResourceHandlerSection.cs
- ReflectTypeDescriptionProvider.cs
- ConfigurationSectionGroupCollection.cs
- IpcClientChannel.cs
- RepeaterItem.cs
- DiagnosticsConfigurationHandler.cs
- MobileErrorInfo.cs
- Sql8ExpressionRewriter.cs
- ControlEvent.cs
- TypeReference.cs
- RemotingException.cs
- AsyncOperation.cs
- InstanceDataCollectionCollection.cs
- DataGridRowDetailsEventArgs.cs
- StringReader.cs
- ExternalCalls.cs
- WindowsIPAddress.cs
- BinaryReader.cs
- TypeSchema.cs
- TreeNode.cs
- XmlDataContract.cs
- ProfileEventArgs.cs
- XmlSchemaSimpleContentExtension.cs
- RequestQueue.cs
- HttpCapabilitiesEvaluator.cs
- TemplateXamlTreeBuilder.cs
- StorageAssociationSetMapping.cs
- IdentityReference.cs
- ConstraintConverter.cs
- XPathNodePointer.cs
- ExpanderAutomationPeer.cs
- ViewEvent.cs
- LogSwitch.cs
- BaseTemplateCodeDomTreeGenerator.cs
- StorageScalarPropertyMapping.cs
- ReadOnlyCollection.cs
- CharacterMetrics.cs
- PeerNameRecordCollection.cs
- MemoryMappedViewStream.cs
- ICspAsymmetricAlgorithm.cs
- QueryConverter.cs
- UpDownBaseDesigner.cs
- WorkflowMarkupSerializationException.cs
- Stacktrace.cs
- EmbeddedMailObjectCollectionEditor.cs
- Merger.cs
- SqlMethodCallConverter.cs
- NonSerializedAttribute.cs
- XmlSchemaExternal.cs
- PingReply.cs
- QilGeneratorEnv.cs
- HttpListenerElement.cs
- TransformCollection.cs
- FtpWebResponse.cs
- HelpInfo.cs
- UrlPath.cs
- NeutralResourcesLanguageAttribute.cs
- DataShape.cs
- HandlerMappingMemo.cs
- SuppressedPackageProperties.cs
- TextBoxLine.cs
- DesignerLoader.cs
- SqlOuterApplyReducer.cs
- Margins.cs
- NameValueSectionHandler.cs
- SiteOfOriginPart.cs
- DataGridItemEventArgs.cs
- RtType.cs
- CopyOnWriteList.cs
- IsolatedStorageFilePermission.cs
- MinimizableAttributeTypeConverter.cs
- Pointer.cs
- xml.cs
- SafePointer.cs
- ValidatorCollection.cs
- ConfigurationStrings.cs
- WindowsListViewGroup.cs