作成日: 2018/08/03 最終更新日: 2018/08/03
文書種別
使用方法
詳細
UpdateCommandイベントの発生時、引数のe.SheetViewに更新対象のシートが設定されます。
このシートが持つ子階層のビューの数をChildRelationCountプロパティで取得することにより、更新されたシートが親階層か子階層かを判断できます。
◎サンプルコード(VB)
◎サンプルコード(C#)
このシートが持つ子階層のビューの数をChildRelationCountプロパティで取得することにより、更新されたシートが親階層か子階層かを判断できます。
◎サンプルコード(VB)
Private Sub FpSpread1UpdateCommand(ByVal sender As System.Object, ByVal e As FarPoint.Web.Spread.SpreadCommandEventArgs) Handles FpSpread1.UpdateCommand
If (e.SheetView.ChildRelationCount = 0) Then
System.Diagnostics.Debug.Print("子階層を更新しました")
Else
System.Diagnostics.Debug.Print("親階層を更新しました")
End If
End Sub
If (e.SheetView.ChildRelationCount = 0) Then
System.Diagnostics.Debug.Print("子階層を更新しました")
Else
System.Diagnostics.Debug.Print("親階層を更新しました")
End If
End Sub
◎サンプルコード(C#)
protected void FpSpread1_UpdateCommand(object sender, FarPoint.Web.Spread.SpreadCommandEventArgs e)
{
if (e.SheetView.ChildRelationCount == 0)
{
System.Diagnostics.Debug.Print("子階層を更新しました");
}
else
{
System.Diagnostics.Debug.Print("親階層を更新しました");
}
}
{
if (e.SheetView.ChildRelationCount == 0)
{
System.Diagnostics.Debug.Print("子階層を更新しました");
}
else
{
System.Diagnostics.Debug.Print("親階層を更新しました");
}
}
旧文書番号
83107