[]
        
(Showing Draft Content)

C1.Win.TouchToolKit.C1Zoom.IsVerticalRailEnabled

IsVerticalRailEnabled Property

IsVerticalRailEnabled

Gets or sets a value that indicates whether the scroll rail is enabled for the vertical axis.

Declaration
public bool IsVerticalRailEnabled { get; set; }
Property Value
Type Description
bool

true to enable the vertical scroll rail; otherwise, false.

Examples

The following code example shows how to use this property.

This code example is part of a larger example provided for the AllowPinchZoom property.

public class GcZoomMiscDemo : Form
{
	private CheckBox _isVerticalRailEnabledCheckBox;
	private GcZoom _gcZoom1 = new GcZoom();

	public GcZoomMiscDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_isVerticalRailEnabledCheckBox.CheckedChanged += _isVerticalRailEnabledCheckBox_CheckedChanged;
	}

	void _isVerticalRailEnabledCheckBox_CheckedChanged(object sender, EventArgs e)
	{
		_gcZoom1.IsVerticalRailEnabled = _isVerticalRailEnabledCheckBox.Checked;
	}

	private void InitializeComponent()
	{
		_isVerticalRailEnabledCheckBox = new CheckBox();
		_isVerticalRailEnabledCheckBox.Text = "VerticalRailEnabled";
		_isVerticalRailEnabledCheckBox.Location = new Point(20, 140);
		_isVerticalRailEnabledCheckBox.Size = new Size(200, 20);
		this.Controls.Add(_isVerticalRailEnabledCheckBox);
	}
}
Public Class GcZoomMiscDemo
	Inherits Form
	Private _isVerticalRailEnabledCheckBox As CheckBox
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _isVerticalRailEnabledCheckBox.CheckedChanged, AddressOf _isVerticalRailEnabledCheckBox_CheckedChanged
	End Sub

	Private Sub _isVerticalRailEnabledCheckBox_CheckedChanged(sender As Object, e As EventArgs)
		_gcZoom1.IsVerticalRailEnabled = _isVerticalRailEnabledCheckBox.Checked
	End Sub

	Private Sub InitializeComponent()
		_isVerticalRailEnabledCheckBox = New CheckBox()
		_isVerticalRailEnabledCheckBox.Text = "VerticalRailEnabled"
		_isVerticalRailEnabledCheckBox.Location = New Point(20, 140)
		_isVerticalRailEnabledCheckBox.Size = New Size(200, 20)
		Me.Controls.Add(_isVerticalRailEnabledCheckBox)
	End Sub
End Class