'Declaration Public Function GetOwnerAtLogicalColumn( _ ByVal logicalIndex As Integer _ ) As Owner
public Owner GetOwnerAtLogicalColumn( int logicalIndex )
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." ); } }
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