Intersoft ClientUI Documentation
ZoomMode Property
See Also  Send Feedback
Intersoft.Client.UI.DocumentViewers Namespace > UXFlowDocumentViewer Class : ZoomMode Property






Gets or sets a value that determines the current zoom mode. Gets or sets a value that determines the current zoom mode.

Syntax

Visual Basic (Declaration) 
<CategoryAttribute("Common Properties")>
Public Property ZoomMode As ZoomMode
Visual Basic (Usage)Copy Code
Dim instance As UXFlowDocumentViewer
Dim value As ZoomMode
 
instance.ZoomMode = value
 
value = instance.ZoomMode
C# 
[CategoryAttribute("Common Properties")]
public ZoomMode ZoomMode {get; set;}
Delphi 
public read-write property ZoomMode: ZoomMode; 
JScript 
CategoryAttribute("Common Properties")
public function get,set ZoomMode : ZoomMode
Managed Extensions for C++ 
[CategoryAttribute("Common Properties")]
public: __property ZoomMode get_ZoomMode();
public: __property void set_ZoomMode( 
   ZoomMode value
);
C++/CLI 
[CategoryAttribute("Common Properties")]
public:
property ZoomMode ZoomMode {
   ZoomMode get();
   void set (    ZoomMode value);
}

Remarks

UXFlowDocumentViewer in Page mode features rich viewing capabilities that are comparable to the industry's popular viewers such as Adobe Reader, including various zoom presets and custom zoom ratio. UXFlowDocumentViewer provides 4 zoom mode which can be customized through the ZoomMode property.

The following list describes the supported zoom mode.

  • ActualSize
    Sets the zoom mode to the original aspect ratio which display the actual size of the document.
  • FitToWidth
    Automatically maintain the zoom ratio and arrange the document's width to fit the page canvas. This mode eliminates the need of horizontal scrollbar which significantly improves reading experience.
  • FitToHeight
    Automatically maintain the zoom ratio and arrange the document's height to fit the page canvas. This mode ensures the entire page to be visible in the canvas which is ideal for quick browsing or print preview.
  • Custom
    Sets the zoom mode to a custom, user-defined value. You can predefine the custom zoom value through the ZoomLevel property.

You can also configure the UXFlowDocumentViewer to display in full screen initially by setting the IsFullScreen property to true. Alternatively, users can toggle the full screen mode at runtime through the full screen command button in the tool bar.

The following illustration compares the various zoom mode supported in UXFlowDocumentViewer.

Note that this feature is not available if UXFlowDocumentViewer is in Scroll mode.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2012 All Rights Reserved.