Version

IsColumnInView Method

Determines if the column is in view.
Syntax
'Declaration
 
Public Function IsColumnInView( _
   ByVal date As Date, _
   ByVal owner As Owner _
) As Boolean
public bool IsColumnInView( 
   DateTime date,
   Owner owner
)

Parameters

date
The specific date.
owner
The specific owner.

Return Value

True if the column is in view.
Example
The following code sample demonstrates how the GetDateAtLogicalColumn, GetOwnerAtLogicalColumn, and IsColumnInView methods can be used to determine whether a particular day is currently in view for a particular owner.

Imports Infragistics.Win
Imports Infragistics.Win.UltraWinSchedule


	Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        If (Me.UltraDayView1.LogicalColumnCount > 0) Then

            '	Get the date of the first logical column
            Dim theDate As DateTime = Me.UltraDayView1.GetDateAtLogicalColumn(0)

            '	Get the owner at the first logical column
            Dim owner As owner = Me.UltraDayView1.GetOwnerAtLogicalColumn(0)

            Debug.WriteLine("The first logical column represents " + theDate.ToShortDateString() + " for owner '" + owner.Name + "'")

            '	Determine whether the column is currently in view
            If (Me.UltraDayView1.IsColumnInView(theDate, owner)) Then
                Debug.WriteLine("The column is currently in view.")
            Else
                Debug.WriteLine("The column is currently not in view.")
            End If
        End If
    End Sub
using Infragistics.Win;
using Infragistics.Win.UltraWinSchedule;
using System.Diagnostics;

		private void button1_Click(object sender, System.EventArgs e)
		{
			if ( this.ultraDayView1.LogicalColumnCount > 0 )
			{
				//	Get the date of the first logical column
				DateTime date = this.ultraDayView1.GetDateAtLogicalColumn( 0 );

				//	Get the owner at the first logical column
				Owner owner = this.ultraDayView1.GetOwnerAtLogicalColumn( 0 );

				Debug.WriteLine( "The first logical column represents " + date.ToShortDateString() + " for owner '" + owner.Name + "'" );

				//	Determine whether the column is currently in view
				if ( this.ultraDayView1.IsColumnInView(date, owner) )
					Debug.WriteLine( "The column is currently in view." );
				else
					Debug.WriteLine( "The column is currently not in view." );
			}
		}
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