Class SchedulerDayViewElement
Represents the main visual element of RadScheduler when in SchedulerDayView mode.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerDayViewElement : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
SchedulerDayViewElement(RadScheduler, SchedulerView)
Initializes a new instance of the SchedulerDayViewElement class.
Declaration
public SchedulerDayViewElement(RadScheduler scheduler, SchedulerView view)
Parameters
RadScheduler
scheduler
The scheduler. |
SchedulerView
view
The view. |
Fields
AppointmentMarginProperty
Properties
AllDayHeaderElement
Gets the DayViewAllDayHeader.
Declaration
public DayViewAllDayHeader AllDayHeaderElement { get; }
Property Value
DayViewAllDayHeader
|
AllDayHeaderHeight
Specifies the height of the DayViewAllDayHeader.
Declaration
public int AllDayHeaderHeight { get; set; }
Property Value
System.Int32
|
AppointmentMargin
Gets or sets the margin between appointments.
Declaration
[VsbBrowsable(true)]
public override Padding AppointmentMargin { get; set; }
Property Value
System.Windows.Forms.Padding
|
Overrides
DataAreaElement
Gets the DayViewAppointmentsArea element.
Declaration
public DayViewAppointmentsArea DataAreaElement { get; }
Property Value
DayViewAppointmentsArea
|
HeaderElement
Gets the DayViewHeader.
Declaration
public DayViewHeader HeaderElement { get; }
Property Value
DayViewHeader
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
CreateChildElements()
Declaration
protected override void CreateChildElements()
Overrides
EnsureAppointmentVisible(AppointmentElement)
Scrolls to a specified appointment if it is not already within the visible area of the control.
Declaration
public void EnsureAppointmentVisible(AppointmentElement appointment)
Parameters
AppointmentElement
appointment
The AppointmentElement to scroll to. |
EnsureCellVisible(SchedulerCellElement)
Scrolls to a specified cell if the cell is not already within the visible area of the control.
Declaration
public void EnsureCellVisible(SchedulerCellElement cell)
Parameters
SchedulerCellElement
cell
The SchedulerCellElement to scroll to. |
GetCellAtPosition(Int32, Int32)
Declaration
public override SchedulerCellElement GetCellAtPosition(int row, int column)
Parameters
System.Int32
row
|
System.Int32
column
|
Returns
SchedulerCellElement
|
Overrides
GetCellContainers()
Declaration
public override List<SchedulerCellContainer> GetCellContainers()
Returns
System.Collections.Generic.List<SchedulerCellContainer>
|
Overrides
GetCellCoordinates(SchedulerCellElement)
Declaration
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
Parameters
SchedulerCellElement
cell
|
Returns
System.Windows.Forms.TableLayoutPanelCellPosition
|
Overrides
GetColumnForDate(DateTime)
Gets the column index corresponding to a given date.
Declaration
public int GetColumnForDate(DateTime dateTime)
Parameters
System.DateTime
dateTime
The date. |
Returns
System.Int32
The corresponding index. |
GetColumnHorizontalOffset(Int32, Single)
Gets the horizontal offset of the column with a specified index compared to the left edge of the first column.
Declaration
public float GetColumnHorizontalOffset(int columnIndex, float availableWidth)
Parameters
System.Int32
columnIndex
The zero-based column index. |
System.Single
availableWidth
The total width available for columns. |
Returns
System.Single
The offset of the specified column. |
GetColumnsWidth(Int32, Int32, Single)
Gets the total width of a range of columns given their indices.
Declaration
public float GetColumnsWidth(int startColumn, int endColumn, float availableWidth)
Parameters
System.Int32
startColumn
The index of the first column in the range. |
System.Int32
endColumn
The index of the last column in the range. |
System.Single
availableWidth
The total width available for columns. |
Returns
System.Single
The width of the specified column range. |
GetColumnWidth(Int32)
Returns the column width as set by the SetColumnWidth method. The actual width of a column will be calculated proportionally according to the values other columns have. The default value of each column is one. This means that setting a value of 2 for a given column will make it twice as large compared to other columns. To get the width of a column in pixels use one of the other overloads of this method.
Declaration
public float GetColumnWidth(int columnIndex)
Parameters
System.Int32
columnIndex
The zero-based column index. |
Returns
System.Single
The width of the specified column. |
GetColumnWidth(Int32, Single)
Gets the width of the column with a specified index.
Declaration
public float GetColumnWidth(int columnIndex, float availableWidth)
Parameters
System.Int32
columnIndex
The zero-based column index. |
System.Single
availableWidth
The total width available for columns. |
Returns
System.Single
The width of the specified column. |
GetDateForCell(Int32, Int32)
Gets the date that corresponds to a cell.
Declaration
public DateTime GetDateForCell(int row, int column)
Parameters
System.Int32
row
The row index of the cell. |
System.Int32
column
The column index of the cell. |
Returns
System.DateTime
The corresponding date. |
GetDateForColumn(Int32)
Gets the date that corresponds to a column.
Declaration
public DateTime GetDateForColumn(int column)
Parameters
System.Int32
column
The column index. |
Returns
System.DateTime
The corresponding date. |
GetLeftOffset()
Gets the total width of the rulers.
Declaration
public virtual float GetLeftOffset()
Returns
System.Single
The width. |
GetRightOffset()
Gets the width of the scrollbar on the right.
Declaration
public virtual float GetRightOffset()
Returns
System.Single
The width. |
InitializeChildren()
Initializes the child elements of this view.
Declaration
protected virtual void InitializeChildren()
IsAllDayAreaAppointment(IEvent)
Gets a value indicating whether an appointment should be displayed in the all-day area of the SchedulerDayViewElement.
Declaration
public virtual bool IsAllDayAreaAppointment(IEvent appointment)
Parameters
IEvent
appointment
The appointment. |
Returns
System.Boolean
[true] if it should be displayed in the all-day area, [false] otherwise. |
IsAppointmentElementInView(AppointmentElement)
Checks whether the given appointment should be visible in the current view.
Declaration
public virtual bool IsAppointmentElementInView(AppointmentElement appointment)
Parameters
AppointmentElement
appointment
The appointment element. |
Returns
System.Boolean
[true] if the appointment should be visible, [false] otherwise. |
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnLoaded()
OnViewPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
|
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
Scroll(Boolean)
Declaration
public override void Scroll(bool up)
Parameters
System.Boolean
up
|
Overrides
ScrollToTime(TimeSpan)
Scrolls the DayViewAppointmentsTable to a specified time of the day.
Declaration
public void ScrollToTime(TimeSpan time)
Parameters
System.TimeSpan
time
The time of the day. |
ScrollToWorkHours()
Scrolls the DayViewAppointmentsTable to the start of the working hours.
Declaration
public void ScrollToWorkHours()
SetColumnWidth(Int32, Single)
Sets the width of a column. The actual width of a column will be calculated proportionally according to the values other columns have. The default value of each column is one. This means that setting a value of 2 for a given column will make it twice as large compared to other columns.
Declaration
public void SetColumnWidth(int columnIndex, float value)
Parameters
System.Int32
columnIndex
The index of the column to resize. |
System.Single
value
The value according to which the actual width will be calculated. |