Class SchedulerMonthViewElement
Respresents the main visual element of RadScheduler when in Scheduler
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerMonthViewElement : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
SchedulerMonthViewElement(RadScheduler, SchedulerView)
Initializes a new instance of the Scheduler
Declaration
public SchedulerMonthViewElement(RadScheduler scheduler, SchedulerView view)
Parameters
Rad The scheduler. |
Scheduler The view. |
Fields
AppointmentHeightProperty
AppointmentMarginProperty
VerticalNavigatorWidthProperty
Properties
AppointmentHeight
Gets or sets the height of the appointment elements.
Declaration
[VsbBrowsable(true)]
public int AppointmentHeight { get; set; }
Property Value
System.
|
AppointmentMargin
Gets or sets the margin between appointments.
Declaration
[VsbBrowsable(true)]
public override Padding AppointmentMargin { get; set; }
Property Value
System.
|
Overrides
Header
Gets the Month
Declaration
public MonthViewHeader Header { get; }
Property Value
MonthViewAreaElement
Gets the Month
Declaration
public MonthViewAreaElement MonthViewAreaElement { get; }
Property Value
VerticalHeader
Gets the Month
Declaration
public MonthViewVerticalHeader VerticalHeader { get; }
Property Value
VerticalNavigatorWidth
VerticalScrollbar
Gets the vertical scrollbar that stands for quick navigation between dates.
Declaration
public RadScrollBarElement VerticalScrollbar { get; }
Property Value
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.
|
Returns
System.
|
Overrides
GetCellAtPosition(Int32, Int32)
Declaration
public override SchedulerCellElement GetCellAtPosition(int row, int column)
Parameters
System.
|
System.
|
Returns
Overrides
GetCellContainers()
Declaration
public override List<SchedulerCellContainer> GetCellContainers()
Returns
System.
|
Overrides
GetCellCoordinates(SchedulerCellElement)
Declaration
public override TableLayoutPanelCellPosition GetCellCoordinates(SchedulerCellElement cell)
Parameters
Scheduler
|
Returns
System.
|
Overrides
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. The zero-based column index. |
System. The total width available for columns. |
Returns
System. 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. The index of the first column in the range. |
System. The index of the last column in the range. |
System. The total width available for columns. |
Returns
System. 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. The zero-based column index. |
Returns
System. 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. The zero-based column index. |
System. The total width available for columns. |
Returns
System. The width of the specified column. |
GetRowHeight(Int32)
Returns the row height as set by the SetRowHeight method. The actual height of a row will be calculated proportionally according to the values other rows have. The default value of each row is one. This means that setting a value of 2 for a given row will make it twice as large compared to other rows. To get the height of a row in pixels use one of the other overloads of this method.
Declaration
public float GetRowHeight(int rowIndex)
Parameters
System. The zero-based row index. |
Returns
System. The height of the specified row. |
GetRowHeight(Int32, Single)
Gets the height of the row with a specified index.
Declaration
public float GetRowHeight(int rowIndex, float availableHeight)
Parameters
System. The zero-based row index. |
System. The total height available for columns. |
Returns
System. The height of the specified row. |
GetRowsHeight(Int32, Int32, Single)
Gets the total height of a range of rows given their indices.
Declaration
public float GetRowsHeight(int startRow, int endRow, float availableHeight)
Parameters
System. The index of the first row in the range. |
System. The index of the last row in the range. |
System. The total height available for rows. |
Returns
System. The height of the specified row range. |
GetRowVerticalOffset(Int32, Single)
Gets the vertical offset of the row with a specified index compared to the top edge of the first row.
Declaration
public float GetRowVerticalOffset(int rowIndex, float availableHeight)
Parameters
System. The zero-based row index. |
System. The total height available for rows. |
Returns
System. The offset of the specified row. |
GetScrollbarToolTipText()
Determines the ToolTip text of the vertical scrollbar's tooltip.
Declaration
protected virtual string GetScrollbarToolTipText()
Returns
System. Returns the ToolTip's text. |
HideScrollToolTip()
Hides the scrollbar tooltip
Declaration
protected virtual void HideScrollToolTip()
InitializeChildren()
Initializes the child elements of this view.
Declaration
protected virtual void InitializeChildren()
InitializeFields()
Declaration
protected override void InitializeFields()
Overrides
InitializeVerticalScrollbar()
Declaration
protected virtual RadScrollBarElement InitializeVerticalScrollbar()
Returns
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.
|
Returns
System.
|
Overrides
NavigateBackward()
NavigateForward()
OnVerticalScroll(Object, ScrollEventArgs)
Declaration
protected virtual void OnVerticalScroll(object sender, ScrollEventArgs e)
Parameters
System.
|
System.
|
OnVerticalScrollBarValueChanged(Object, EventArgs)
Fired when the ValueChanged event of the vertical scrollbar fires.
Declaration
protected virtual void OnVerticalScrollBarValueChanged(object sender, EventArgs e)
Parameters
System. The sender of the event. |
System. The event arguments. |
OnViewPropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void OnViewPropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.
|
System.
|
Overrides
Scroll(Boolean)
Declaration
public override void Scroll(bool up)
Parameters
System.
|
Overrides
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. The index of the column to resize. |
System. The value according to which the actual width will be calculated. |
SetRowHeight(Int32, Single)
Sets the height of a row. The actual height of a row will be calculated proportionally according to the values other rows have. The default value of each row is one. This means that setting a value of 2 for a given row will make it twice as large compared to other rows.
Declaration
public void SetRowHeight(int rowIndex, float value)
Parameters
System. The index of the row to resize. |
System. The value according to which the actual height will be calculated. |
ShowScrollbarToolTip()
Shows the tooltip next to the vertical scrollbar.
Declaration
protected virtual void ShowScrollbarToolTip()
UpdateVerticalScrollbar()
Called when the view's settings has changed in order to update the settings of the vertical scroll.
Declaration
protected virtual void UpdateVerticalScrollbar()