バージョン

ReassignAllActivity メソッド

このオーナーに割り当てられているすべての予定とメモを新しいオーナーに再割り当てします。
シンタックス
'宣言
 
Public Sub ReassignAllActivity( _
   ByVal newOwner As Owner _
) 
public void ReassignAllActivity( 
   Owner newOwner
)

パラメータ

newOwner
新しいオーナーまたはnull。
使用例
Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        '	Clear the Owners collection
        Me.UltraDayView1.CalendarInfo.Owners.Clear()

        '	Hide the unassigned owner
        Me.UltraDayView1.CalendarInfo.Owners.UnassignedOwner.Visible = False

        '	Add 2 owners
        Dim ownerFrick As Infragistics.Win.UltraWinSchedule.Owner = Me.UltraDayView1.CalendarInfo.Owners.Add("frick", "Frick")
        Dim ownerFrack As Infragistics.Win.UltraWinSchedule.Owner = Me.UltraDayView1.CalendarInfo.Owners.Add("frack", "Frack")

        '	Add an appointment for "Frick"
        Dim appointmentFrick As Appointment = Me.UltraCalendarInfo1.Appointments.Add(DateTime.Today, "Frick's Appointment")
        appointmentFrick.Owner = ownerFrick

        '	Add an appointment for "Frack"
        Dim appointmentFrack As Appointment = Me.UltraCalendarInfo1.Appointments.Add(DateTime.Today, "Frack's Appointment")
        appointmentFrack.Owner = ownerFrack

        '	Use the SwapIndex method to swap positions for the 2 owners
        ownerFrick.SwapIndex(ownerFrack)

        '	Use the ReassignAllActivity method to assign all of "Frick's" activity to "Frack"
        ownerFrick.ReassignAllActivity(ownerFrack)

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

		private void button1_Click(object sender, System.EventArgs e)
		{
			//	Clear the Owners collection
			this.ultraDayView1.CalendarInfo.Owners.Clear();

			//	Hide the unassigned owner
			this.ultraDayView1.CalendarInfo.Owners.UnassignedOwner.Visible = false;

			//	Add 2 owners
			Infragistics.Win.UltraWinSchedule.Owner ownerFrick = this.ultraDayView1.CalendarInfo.Owners.Add( "frick", "Frick" );
			Infragistics.Win.UltraWinSchedule.Owner ownerFrack = this.ultraDayView1.CalendarInfo.Owners.Add( "frack", "Frack" );

			//	Add an appointment for "Frick"
			Appointment appointmentFrick = this.ultraCalendarInfo1.Appointments.Add( DateTime.Today, "Frick's Appointment" );
			appointmentFrick.Owner = ownerFrick;

			//	Add an appointment for "Frack"
			Appointment appointmentFrack = this.ultraCalendarInfo1.Appointments.Add( DateTime.Today, "Frack's Appointment" );
			appointmentFrack.Owner = ownerFrack;

			//	Use the SwapIndex method to swap positions for the 2 owners
			ownerFrick.SwapIndex( ownerFrack );

			//	Use the ReassignAllActivity method to assign all of "Frick's" activity to "Frack"
			ownerFrick.ReassignAllActivity( ownerFrack );
		}
参照