Class SchedulerMonthViewElement
Respresents the main visual element of RadScheduler when in SchedulerMonthView mode.
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 SchedulerMonthViewElement class.
Declaration
public SchedulerMonthViewElement(RadScheduler scheduler, SchedulerView view)
Parameters
RadScheduler
scheduler
The scheduler. |
SchedulerView
view
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.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
Header
Gets the MonthViewHeader instance.
Declaration
public MonthViewHeader Header { get; }
Property Value
MonthViewHeader
|
MonthViewAreaElement
Gets the MonthViewAreaElement instance.
Declaration
public MonthViewAreaElement MonthViewAreaElement { get; }
Property Value
MonthViewAreaElement
|
VerticalHeader
Gets the MonthViewVerticalHeader instance.
Declaration
public MonthViewVerticalHeader VerticalHeader { get; }
Property Value
MonthViewVerticalHeader
|
VerticalNavigatorWidth
VerticalScrollbar
Gets the vertical scrollbar that stands for quick navigation between dates.
Declaration
public RadScrollBarElement VerticalScrollbar { get; }
Property Value
RadScrollBarElement
|
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
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
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. |
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.Int32
rowIndex
The zero-based row index. |
Returns
System.Single
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.Int32
rowIndex
The zero-based row index. |
System.Single
availableHeight
The total height available for columns. |
Returns
System.Single
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.Int32
startRow
The index of the first row in the range. |
System.Int32
endRow
The index of the last row in the range. |
System.Single
availableHeight
The total height available for rows. |
Returns
System.Single
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.Int32
rowIndex
The zero-based row index. |
System.Single
availableHeight
The total height available for rows. |
Returns
System.Single
The offset of the specified row. |
GetScrollbarToolTipText()
Determines the ToolTip text of the vertical scrollbar's tooltip.
Declaration
protected virtual string GetScrollbarToolTipText()
Returns
System.String
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
RadScrollBarElement
|
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
NavigateBackward()
NavigateForward()
OnVerticalScroll(Object, ScrollEventArgs)
Declaration
protected virtual void OnVerticalScroll(object sender, ScrollEventArgs e)
Parameters
System.Object
sender
|
System.Windows.Forms.ScrollEventArgs
e
|
OnVerticalScrollBarValueChanged(Object, EventArgs)
Fired when the ValueChanged event of the vertical scrollbar fires.
Declaration
protected virtual void OnVerticalScrollBarValueChanged(object sender, EventArgs e)
Parameters
System.Object
sender
The sender of the event. |
System.EventArgs
e
The event arguments. |
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
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. |
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.Int32
rowIndex
The index of the row to resize. |
System.Single
value
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()