Example





In This Topic

ZoomStep Property (GdViewer)

In This Topic
Gets or sets the zoom step, that specifies the percentage of increasing or decreasing the current zoom factor when using the ZoomIN and the ZoomOUT methods. The value of 25 represents the 25% step, the value of 10 represents the 10% step, etc.
Syntax
'Declaration
 
Public Property ZoomStep As Integer
public int ZoomStep {get; set;}
public read-write property ZoomStep: Integer; 
public function get,set ZoomStep : int
public: __property int get_ZoomStep();
public: __property void set_ZoomStep( 
   int value
);
public:
property int ZoomStep {
   int get();
   void set (    int value);
}

Property Value

The default value is 25.
Example
How to change the current zoom step.
'We assume that the GdViewer1 control has been properly integrated.
            
'Determine the current zoom step.
MessageBox.Show("The current zoom step is: " + GdViewer1.ZoomStep.ToString(), "GdViewer.ZoomStep")
'Set the current zoom step to 10%.
GdViewer1.ZoomStep = 10
//We assume that the GdViewer1 control has been properly integrated.
            
//Determine the current zoom step.
MessageBox.Show("The current zoom step is: " + GdViewer1.ZoomStep.ToString(), "GdViewer.ZoomStep");
//Set the current zoom step to 10%.
GdViewer1.ZoomStep = 10;
See Also