'宣言 Public Property NoteEditor As Infragistics.Win.EmbeddableEditorBase
public Infragistics.Win.EmbeddableEditorBase NoteEditor {get; set;}
デフォルトで、UltraMonthViewSingleBase 派生のコントロールは、Note を編集するために EditorWithText を使用します。 AppointmentEditorControl プロパティを使用して、Note を編集するために使用される異なるエディターを割り当てることができます。
AppointmentEditor プロパティは実行時にのみ使用可能です。デザイン時にカスタム エディターを割り当てるには、NoteEditorControl プロパティを使用します。
Imports Infragistics.Win Imports Infragistics.Win.UltraWinSchedule Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Me.UltraWeekView1.AppointmentEditor = New ColorPickerEditor() Me.UltraWeekView1.NoteEditor = New ColorPickerEditor() Me.UltraMonthViewSingle1.AppointmentEditor = New ColorPickerEditor() Me.UltraMonthViewSingle1.NoteEditor = New ColorPickerEditor() Me.UltraWeekView1.CalendarInfo.Appointments.Add(DateTime.Now, DateTime.Now.AddMinutes(30), "Red") Me.UltraWeekView1.CalendarInfo.Notes.Add(DateTime.Today, "Green") Me.UltraMonthViewSingle1.CalendarInfo.Appointments.Add(DateTime.Now, DateTime.Now.AddMinutes(30), "Blue") Me.UltraWeekView1.CalendarInfo.Notes.Add(DateTime.Today, "Yellow") End Sub
using Infragistics.Win; using Infragistics.Win.UltraWinSchedule; private void button1_Click(object sender, System.EventArgs e) { this.ultraWeekView1.AppointmentEditor = new ColorPickerEditor(); this.ultraWeekView1.NoteEditor = new ColorPickerEditor(); this.ultraMonthViewSingle1.AppointmentEditor = new ColorPickerEditor(); this.ultraMonthViewSingle1.NoteEditor = new ColorPickerEditor(); this.ultraWeekView1.CalendarInfo.Appointments.Add( DateTime.Now, DateTime.Now.AddMinutes( 30 ), "Red" ); this.ultraWeekView1.CalendarInfo.Notes.Add( DateTime.Today, "Green" ); this.ultraMonthViewSingle1.CalendarInfo.Appointments.Add( DateTime.Now, DateTime.Now.AddMinutes( 30 ), "Blue" ); this.ultraWeekView1.CalendarInfo.Notes.Add( DateTime.Today, "Yellow" ); }