PowerTools SPREAD for Windows Forms 8.0J
View プロパティ (SelectionChangingEventArgs)


選択範囲を含むビューを取得します。
構文
'Declaration
 
Public ReadOnly Property View As SpreadView
'使用法
 
Dim instance As SelectionChangingEventArgs
Dim value As SpreadView
 
value = instance.View
public SpreadView View {get;}

プロパティ値

ビューを含むSpreadViewオブジェクト
次のサンプルコードは、選択範囲の色を変更します。
private void fpSpread1SelectionChanging(object sender, FarPoint.Win.Spread.SelectionChangingEventArgs e) 
{
    e.View.Sheets[e.View.ActiveSheetIndex].SelectionStyle = FarPoint.Win.Spread.SelectionStyles.SelectionColors;
    e.View.Sheets[e.View.ActiveSheetIndex].SelectionBackColor = Color.Yellow;
}
Private Sub FpSpread1SelectionChanging(ByVal sender As Object, ByVal e As FarPoint.Win.Spread.SelectionChangingEventArgs)
Handles FpSpread1.SelectionChanging
    e.View.Sheets(e.View.ActiveSheetIndex).SelectionStyle = FarPoint.Win.Spread.SelectionStyles.SelectionColors
    e.View.Sheets(e.View.ActiveSheetIndex).SelectionBackColor = Color.Yellow
End Sub
参照

SelectionChangingEventArgs クラス
SelectionChangingEventArgs メンバ

 

 


© 2004-2015, GrapeCity inc. All rights reserved.