Version

AppointmentEndTimeVisible Property

Gets/sets whether the end time of an Appointment is displayed.
Syntax
'Declaration
 
Public Property AppointmentEndTimeVisible As Boolean
public bool AppointmentEndTimeVisible {get; set;}
Remarks

By default, the value of the AppointmentEndTimeVisible property is False. Setting it to true will result in the value of the Appointment.EndDateTime property being displayed as part of the visual representation of the corresponding Appointment.

Note: The TimeDisplayStyle property takes precedence over the AppointmentEndTimeVisible property; i.e., if TimeDisplayStyle = None, the AppointmentEndTimeVisible property is not applicable.

Note: The manner in which the value is displayed (for example, a clock or a numerical representation) is determined by the TimeDisplayStyle property.

Note: The width of the visual representation of the appointment also affects whether the appointment's Appointment.EndDateTime is displayed.

If the appointment's width is less than double the amount of space required to display both appointment times, the Appointment.EndDateTime is hidden first, then the Appointment.StartDateTime, as horizontal space permits.

Example
Demonstrates how to use the ActivityDisplayStyle property to display only appointments and notes; demonstrates how to make appointment times display as an analog clock, and to ensure the displaying of appointment end times

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule
Imports Infragistics.Win.UltraWinSchedule.MonthViewSingle

    Private Sub SetupActivityDisplay()

        '	Add an appointment, note and holiday for the current date
        Dim startTime As DateTime = New DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 9, 0, 0)
        Dim endTime As DateTime = New DateTime(DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 17, 30, 0)
        Me.UltraMonthViewSingle1.CalendarInfo.Appointments.Add(startTime, endTime, "Today's Appointment")
        Me.UltraMonthViewSingle1.CalendarInfo.Notes.Add(DateTime.Today, "Today's Note")

        '	Set the ActivityDisplayStyle property to display Appointments and Notes, but not Holidays
        Me.UltraMonthViewSingle1.ActivityDisplayStyle = ActivityDisplayStyleEnum.Appointments Or ActivityDisplayStyleEnum.Notes

        '	Set the TimeDisplayStyle property to display Appointment times as an analog clock
        Me.UltraMonthViewSingle1.TimeDisplayStyle = TimeDisplayStyleEnum.Clock

        '	Set the AppointmentEndTimeVisible property to display the end time of Appointments
        Me.UltraMonthViewSingle1.AppointmentEndTimeVisible = True

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

		private void SetupActivityDisplay()
		{

			//	Add an appointment, note and holiday for the current date
			DateTime startTime = new DateTime( DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 9, 0, 0 );
			DateTime endTime = new DateTime( DateTime.Today.Year, DateTime.Today.Month, DateTime.Today.Day, 17, 30, 0 );
			this.ultraMonthViewSingle1.CalendarInfo.Appointments.Add( startTime, endTime, "Today's Appointment" );
			this.ultraMonthViewSingle1.CalendarInfo.Notes.Add( DateTime.Today, "Today's Note" );

			//	Set the ActivityDisplayStyle property to display Appointments and Notes, but not Holidays
			this.ultraMonthViewSingle1.ActivityDisplayStyle = ActivityDisplayStyleEnum.Appointments |
																			   ActivityDisplayStyleEnum.Notes;

			//	Set the TimeDisplayStyle property to display Appointment times as an analog clock
			this.ultraMonthViewSingle1.TimeDisplayStyle = TimeDisplayStyleEnum.Clock;

			//	Set the AppointmentEndTimeVisible property to display the end time of Appointments
			this.ultraMonthViewSingle1.AppointmentEndTimeVisible = true;

		}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also