バージョン

DeleteAllActivity メソッド

このオーナーに割り当てられている予定とメモをすべて削除します。
シンタックス
'宣言
 
Public Sub DeleteAllActivity() 
public void DeleteAllActivity()
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

    Private Sub UltraDayView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles UltraDayView1.KeyDown
        If (e.KeyCode Or Keys.Delete) = Keys.Delete AndAlso e.Shift Then

            If Not Me.UltraDayView1.ActiveOwner Is Nothing Then

                If MessageBox.Show(Me, "Would you like to delete all activity for '" + Me.UltraDayView1.ActiveOwner.Name + "'?", "Delete All Activity?", MessageBoxButtons.YesNo) = DialogResult.Yes Then
                    Me.UltraDayView1.ActiveOwner.DeleteAllActivity()
                End If
            End If
        End If

    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

		private void ultraDayView1_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e)
		{
			if ( (e.KeyCode & Keys.Delete ) == Keys.Delete && e.Shift )
			{
				if ( this.ultraDayView1.ActiveOwner != null )
				{
					if ( MessageBox.Show( this, "Would you like to delete all activity for '" + this.ultraDayView1.ActiveOwner.Name + "'?", "Delete All Activity?", MessageBoxButtons.YesNo ) == DialogResult.Yes )
						this.ultraDayView1.ActiveOwner.DeleteAllActivity();
				}
			}
		}
参照