# C1.Win.TouchToolKit.C1Zoom.ScrollIndicatorMode

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_TouchToolKit_C1Zoom_ScrollIndicatorMode_" data-uid="C1.Win.TouchToolKit.C1Zoom.ScrollIndicatorMode*">ScrollIndicatorMode Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_TouchToolKit_C1Zoom_ScrollIndicatorMode_" data-uid="C1.Win.TouchToolKit.C1Zoom.ScrollIndicatorMode*"></a>
<h4 id="C1_Win_TouchToolKit_C1Zoom_ScrollIndicatorMode" data-uid="C1.Win.TouchToolKit.C1Zoom.ScrollIndicatorMode">ScrollIndicatorMode</h4>
<div class="markdown level1 summary"><p>Gets or sets a value indicating which mode to indicate current scroll location.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public ScrollIndicatorMode ScrollIndicatorMode { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property ScrollIndicatorMode As ScrollIndicatorMode</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="C1.Win.TouchToolKit.ScrollIndicatorMode.html">ScrollIndicatorMode</a></td>
      <td><p>One of <a class="xref" href="C1.Win.TouchToolKit.C1Zoom.ScrollIndicatorMode.html#C1_Win_TouchToolKit_C1Zoom_ScrollIndicatorMode">ScrollIndicatorMode</a> values. The default is <a class="xref" href="C1.Win.TouchToolKit.ScrollIndicatorMode.html#C1_Win_TouchToolKit_ScrollIndicatorMode_ScrollIndicator">ScrollIndicator</a>.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="C1_Win_TouchToolKit_C1Zoom_ScrollIndicatorMode_examples">Examples</h5>
<p>
  The following code example shows how to use this property. 
</p>
<pre><code class="lang-csharp">public class GcZoomScrollDemo : Form
{
	private ComboBox _scrollIndicatorModeComboBox;
	private GcZoom _gcZoom1 = new GcZoom();

	public GcZoomScrollDemo()
	{
		InitializeComponent();

		_gcZoom1.Target = this;

		_scrollIndicatorModeComboBox.TextChanged += _scrollIndicatorModeComboBox_TextChanged;
	}

	void _scrollIndicatorModeComboBox_TextChanged(object sender, EventArgs e)
	{
		switch (_scrollIndicatorModeComboBox.Text)
		{
			case "None":
				this._gcZoom1.ScrollIndicatorMode = ScrollIndicatorMode.None;
				break;

			case "ScrollBar":
				this._gcZoom1.ScrollIndicatorMode = ScrollIndicatorMode.ScrollBar;
				break;

			case "ScrollIndicator":
				this._gcZoom1.ScrollIndicatorMode = ScrollIndicatorMode.ScrollIndicator;
				break;

			default:
				break;
		}
	}

	private void InitializeComponent()
	{
		_scrollIndicatorModeComboBox = new System.Windows.Forms.ComboBox();
		_scrollIndicatorModeComboBox.Items.AddRange(new object[] { "None", "ScrollBar", "ScrollIndicator" });
		_scrollIndicatorModeComboBox.Location = new Point(120, 20);
		this.Controls.Add(_scrollIndicatorModeComboBox);
	}
}</code></pre>
<pre><code class="lang-csharp">Public Class GcZoomScrollDemo
	Inherits Form
	Private _scrollIndicatorModeComboBox As ComboBox
	Private _gcZoom1 As New GcZoom()

	Public Sub New()
		InitializeComponent()

		_gcZoom1.Target = Me

		AddHandler _scrollIndicatorModeComboBox.TextChanged, AddressOf _scrollIndicatorModeComboBox_TextChanged
	End Sub

	Private Sub _scrollIndicatorModeComboBox_TextChanged(sender As Object, e As EventArgs)
		Select Case _scrollIndicatorModeComboBox.Text
			Case "None"
				Me._gcZoom1.ScrollIndicatorMode = ScrollIndicatorMode.None
				Exit Select

			Case "ScrollBar"
				Me._gcZoom1.ScrollIndicatorMode = ScrollIndicatorMode.ScrollBar
				Exit Select

			Case "ScrollIndicator"
				Me._gcZoom1.ScrollIndicatorMode = ScrollIndicatorMode.ScrollIndicator
				Exit Select

			Case Else
				Exit Select
		End Select
	End Sub

	Private Sub InitializeComponent()
		_scrollIndicatorModeComboBox = New System.Windows.Forms.ComboBox()
		_scrollIndicatorModeComboBox.Items.AddRange(New Object() {"None", "ScrollBar", "ScrollIndicator"})
		_scrollIndicatorModeComboBox.Location = New Point(120, 20)
		Me.Controls.Add(_scrollIndicatorModeComboBox)
	End Sub
End Class</code></pre>

</div>
