New to Telerik UI for WinFormsStart a free 30-day trial

A class that defines the properties that are related to the zoom operations in RadPictureBoxElement.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class PictureBoxZoomProperties : INotifyPropertyChanged

Inheritance: objectPictureBoxZoomProperties

Implements: INotifyPropertyChanged

Constructors

Initializes a new instance of the PictureBoxZoomProperties class.

C#
public PictureBoxZoomProperties()

Properties

Gets or sets a value indicating whether the zoom operations are allowed.

C#
public virtual bool AllowZoom { get; set; }

Gets or sets the maximal zoom factor.

C#
public virtual double MaxZoomFactor { get; set; }

Gets or sets the minimal zoom factor.

C#
public virtual double MinZoomFactor { get; set; }

Gets or sets the step that increments or decrements the element during a zoom operation with touch gesture.

C#
public double TouchZoomStep { get; set; }

Gets or sets the current zoom factor.

C#
public virtual double ZoomFactor { get; set; }

Gets or sets the step that increments or decrements the element during a zoom operation with the mouse.

C#
public double ZoomStep { get; set; }

Methods

C#
protected virtual void OnPropertyChanged(string propertyName)
Parameters:propertyNamestring

Resets the zoom to the default value.

C#
public virtual void ResetZoom()

Performs a zoom operation by given steps count.

C#
public virtual void Zoom(int step)
Parameters:stepint

Number of steps to zoom. Positive value will zoom-in, while a negative value will zoom-out.

Performs a zoom-in operation with one step, according to the ZoomStep value.

C#
public void ZoomIn()

Performs a zoom-in operation with several steps, according to the ZoomStep value.

C#
public void ZoomIn(int steps)
Parameters:stepsint

The count of steps to zoom in.

Performs a zoom-out operation with one step, according to the ZoomStep value.

C#
public void ZoomOut()

Performs a zoom-out operation with several steps, according to the ZoomStep value.

C#
public void ZoomOut(int steps)
Parameters:stepsint

The count of steps to zoom-out.

Events

An event that is raised when a property is changed.

C#
public event PropertyChangedEventHandler PropertyChanged

Implements: INotifyPropertyChanged.PropertyChanged