FarPoint.Win.SpreadJ アセンブリ > FarPoint.Win.Spread 名前空間 > SpreadView クラス > GetViewportRightColumn メソッド : GetViewportRightColumn(Int32) メソッド |
'Declaration Public Overloads Function GetViewportRightColumn( _ ByVal columnViewportIndex As Integer _ ) As Integer
'使用法 Dim instance As SpreadView Dim columnViewportIndex As Integer Dim value As Integer value = instance.GetViewportRightColumn(columnViewportIndex)
public int GetViewportRightColumn( int columnViewportIndex )
ビューポート列のインデックスは0から始まります。つまり、最初(一番左)のビューポート列のインデックスは0になります。
FarPoint.Win.Spread.SpreadView sv = fpSpread1.GetRootWorkbook();
sv.AddViewport(0, 0);
MessageBox.Show("The right-most column of the viewport is " + sv.GetViewportRightColumn(0).ToString())
Dim sv As FarPoint.Win.Spread.SpreadView = FpSpread1.GetRootWorkbook sv.AddViewport(0, 0) MessageBox.Show("The right-most column of the viewport is " & sv.GetViewportRightColumn(0).ToString())