MESCIUS SPREAD for Windows Forms 17.0J
View プロパティ (SelectionChangingEventArgs)

選択範囲を含むビューを取得します。
構文
'Declaration
 
Public ReadOnly Property View As SpreadView
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 メンバ

 

 


© MESCIUS inc. All rights reserved.