MESCIUS SPREAD for Windows Forms 15.0J
ScrollToLastRowWithData フィールド
使用例 

データを含む最後の行が表示されるまでスクロールします。
構文
'宣言
 
Public Shared ReadOnly ScrollToLastRowWithData As Object
public static readonly object ScrollToLastRowWithData
使用例
次のサンプルコードは、このシートのデータを含む最後の行へのスクロールに[S]キーを使用するマップを設定します。
FarPoint.Win.Spread.InputMap im;
im = fpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused);
im.Put(new FarPoint.Win.Spread.Keystroke(Keys.S, Keys.None), FarPoint.Win.Spread.SpreadActions.ScrollToLastRowWithData);
Dim im As FarPoint.Win.Spread.InputMap
im = FpSpread1.GetInputMap(FarPoint.Win.Spread.InputMapMode.WhenAncestorOfFocused)
im.Put(New FarPoint.Win.Spread.Keystroke(Keys.S, Keys.None), FarPoint.Win.Spread.SpreadActions.ScrollToLastRowWithData)
解説

このアクションは、シートのデータを含む一番下の行が表示されるまでスクロールします。

独自の入力マップまたはアクションマップを定義することにより、このアクションをカスタムのキーの組み合わせに対応付けることができます。マップの詳細については、「キーボード操作」を参照してください。

参照

SpreadActions クラス
SpreadActions メンバ

 

 


© MESCIUS inc. All rights reserved.