Class SchedulerTimelineViewElement
Respresents the main visual element of RadScheduler when in SchedulerTimelineView mode.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class SchedulerTimelineViewElement : SchedulerViewElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
SchedulerTimelineViewElement(RadScheduler, SchedulerView)
Initializes a new instance of the SchedulerTimelineViewElement class.
Declaration
public SchedulerTimelineViewElement(RadScheduler scheduler, SchedulerView view)
Parameters
RadScheduler
scheduler
The scheduler. |
SchedulerView
view
The view. |
Fields
AppointmentHeightProperty
AppointmentMarginProperty
ColumnHeaderHeightProperty
VerticalScrollWidthProperty
ViewHeaderHeightProperty
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
ColumnHeaderHeight
Gets the column header height.
Declaration
[VsbBrowsable(true)]
public int ColumnHeaderHeight { get; set; }
Property Value
System.Int32
|
Header
Gets the TimelineHeader instance.
Declaration
public TimelineHeader Header { get; }
Property Value
TimelineHeader
|
NavigationElement
Presenter
Gets the TimelineAppointmentsPresenter instance.
Declaration
public TimelineAppointmentsPresenter Presenter { get; }
Property Value
TimelineAppointmentsPresenter
|
VerticalScrollWidth
Gets or sets the width of the vertical scroll bar.
Declaration
public int VerticalScrollWidth { get; set; }
Property Value
System.Int32
|
ViewHeaderHeight
Gets the view header height.
Declaration
[VsbBrowsable(true)]
public int ViewHeaderHeight { get; set; }
Property Value
System.Int32
|
VScrollBar
Gets the vertical scrollbar element.
Declaration
public RadScrollBarElement VScrollBar { get; }
Property Value
RadScrollBarElement
The VScroll bar. |
Methods
ArrangeOverride(SizeF)
Declaration
protected override SizeF ArrangeOverride(SizeF finalSize)
Parameters
System.Drawing.SizeF
finalSize
|
Returns
System.Drawing.SizeF
|
Overrides
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateNavigationElement()
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)
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.
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. |
GetDateForValue(Int32)
Gets the start date corresponding to a given value of the horizontal scrollbar.
Declaration
public DateTime GetDateForValue(int value)
Parameters
System.Int32
value
The value of the horizontal scrollbar. |
Returns
System.DateTime
The date which corresponds to the value. |
GetScrollValue(DateTime)
Gets the value that the horizontal scrollbar needs to be set with in order to display the specified date
Declaration
public int GetScrollValue(DateTime date)
Parameters
System.DateTime
date
The specified date. |
Returns
System.Int32
The scroll value. |
InitializeChildren()
Initializes the child elements of this view.
Declaration
protected virtual void InitializeChildren()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
NavigateBackward()
NavigateForward()
NavigateToValue(Int32)
OnNavigationElementValueChanged()
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. |
UpdateNavigationElement()
UpdateVeticalScroll(Single, Single)
Declaration
protected virtual void UpdateVeticalScroll(float presenterHeight, float appointmentsMaxHeight)
Parameters
System.Single
presenterHeight
|
System.Single
appointmentsMaxHeight
|