GrapeCity.Windows.SpreadSheet.UI Namespace > ColumnViewportWidthChangedEventArgs Class : ViewportIndex Property |
'Declaration Public ReadOnly Property ViewportIndex As System.Integer
'Usage Dim instance As ColumnViewportWidthChangedEventArgs Dim value As System.Integer value = instance.ViewportIndex
public System.int ViewportIndex {get;}
gcSpreadSheet1.AddColumnViewport(0, 100); gcSpreadSheet1.AddRowViewport(0, 80); private void gcSpreadSheet1_ColumnViewportWidthChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.ColumnViewportWidthChangedEventArgs e) { listBox1.Items.Add(e.DeltaViewportWidth.ToString()); listBox1.Items.Add(e.ViewportIndex.ToString()); } private void gcSpreadSheet1_ColumnViewportWidthChanging(object sender, GrapeCity.Windows.SpreadSheet.UI.ColumnViewportWidthChangingEventArgs e) { listBox1.Items.Add(e.DeltaViewportWidth.ToString()); listBox1.Items.Add(e.ViewportIndex.ToString()); } private void gcSpreadSheet1_ColumnWidthChanged(object sender, GrapeCity.Windows.SpreadSheet.UI.ColumnWidthChangedEventArgs e) { listBox1.Items.Add(e.ColumnList.Length.ToString()); listBox1.Items.Add(e.Header.ToString()); } private void gcSpreadSheet1_ColumnWidthChanging(object sender, GrapeCity.Windows.SpreadSheet.UI.ColumnWidthChangingEventArgs e) { listBox1.Items.Add(e.ColumnList.Length.ToString()); listBox1.Items.Add(e.Header.ToString()); }
GcSpreadSheet1.AddColumnViewport(0, 100) GcSpreadSheet1.AddRowViewport(0, 80) Private Sub GcSpreadSheet1_ColumnViewportWidthChanged(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ColumnViewportWidthChangedEventArgs) Handles GcSpreadSheet1.ColumnViewportWidthChanged ListBox1.Items.Add(e.DeltaViewportWidth.ToString()) ListBox1.Items.Add(e.ViewportIndex.ToString()) End Sub Private Sub GcSpreadSheet1_ColumnViewportWidthChanging(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ColumnViewportWidthChangingEventArgs) Handles GcSpreadSheet1.ColumnViewportWidthChanging ListBox1.Items.Add(e.DeltaViewportWidth.ToString()) ListBox1.Items.Add(e.ViewportIndex.ToString()) End Sub Private Sub GcSpreadSheet1_ColumnWidthChanged(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ColumnWidthChangedEventArgs) Handles GcSpreadSheet1.ColumnWidthChanged ListBox1.Items.Add(e.ColumnList.Length.ToString()) ListBox1.Items.Add(e.Header.ToString()) End Sub Private Sub GcSpreadSheet1_ColumnWidthChanging(sender As System.Object, e As GrapeCity.Windows.SpreadSheet.UI.ColumnWidthChangingEventArgs) Handles GcSpreadSheet1.ColumnWidthChanging ListBox1.Items.Add(e.ColumnList.Length.ToString()) ListBox1.Items.Add(e.Header.ToString()) End Sub
Target Platforms: Windows 7, Windows 8 Desktop, Windows Vista SP1 or later, Windows Server 2000, Windows 2000 Professional, Windows XP Professional, Windows NT 4.0 Workstation, SP6, Windows NT 4.0 Server, SP6