Class RulerPrimitive
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.Scheduler.dll
Syntax
public class RulerPrimitive : FillPrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Constructors
RulerPrimitive(RadScheduler, DayViewAppointmentsArea)
Initializes a new instance of the RulerPrimitive class.
Declaration
public RulerPrimitive(RadScheduler scheduler, DayViewAppointmentsArea area)
Parameters
RadScheduler
scheduler
|
DayViewAppointmentsArea
area
|
Fields
CurrentTimePointerColorProperty
EndScaleMinutesProperty
EndScaleProperty
FormatStringsProperty
HourLineColorProperty
HourLineShadowColorProperty
HourLineStartPositionProperty
MinutesFontProperty
RangeFactorProperty
RulerWidthProperty
SectionLineColorProperty
SectionLineStartPositionProperty
SeparatorsOffsetProperty
ShowCurrentTimeProperty
StartScaleMinutesProperty
StartScaleProperty
TimePointerStyleProperty
Properties
Border
Gets or sets the border.
Declaration
public BorderPrimitive Border { get; }
Property Value
BorderPrimitive
The border. |
CurrentTimePointerColor
Gets or sets the color of the current time pointer.
Declaration
public Color CurrentTimePointerColor { get; set; }
Property Value
System.Drawing.Color
The color of the current time pointer. |
CurrentTimePointerWidth
Gets or sets the width of the Current time pointerof the ruler.
Declaration
public float CurrentTimePointerWidth { get; set; }
Property Value
System.Single
|
DefaultOffset
Declaration
public float DefaultOffset { get; }
Property Value
System.Single
|
DefaultSeparatorOffset
Gets or sets the default separator offset.
Declaration
public int DefaultSeparatorOffset { get; set; }
Property Value
System.Int32
The default separator offset. |
EndScale
Gets or sets the end scale.
Declaration
public int EndScale { get; set; }
Property Value
System.Int32
The end scale. |
EndScaleMinutes
Gets or sets the end scale minutes.
Declaration
public int EndScaleMinutes { get; set; }
Property Value
System.Int32
|
FormatStrings
Gets or sets and instance holding the format strings used for drawing time representations on the ruler.
Declaration
public RulerFormatStrings FormatStrings { get; set; }
Property Value
RulerFormatStrings
|
HourLineColor
Gets or sets the hour line color.
Declaration
public Color HourLineColor { get; set; }
Property Value
System.Drawing.Color
The hour line color. |
HourLineShadowColor
Gets or sets the hour line shadow color.
Declaration
public Color HourLineShadowColor { get; set; }
Property Value
System.Drawing.Color
The hour line shadow color. |
HourLineStartPosition
Gets or sets the hour line start position.
Declaration
public int HourLineStartPosition { get; set; }
Property Value
System.Int32
The hour line start position. |
MinutesFont
Gets or sets the minutes font.
Declaration
public Font MinutesFont { get; set; }
Property Value
System.Drawing.Font
The minutes font. |
RangeFactor
Gets or sets the range factor.
Declaration
public ScaleRange RangeFactor { get; set; }
Property Value
ScaleRange
The range factor. |
RulerRenderer
Gets or sets the ruler primitive's renderer.
Declaration
public RulerRendererBase RulerRenderer { get; set; }
Property Value
RulerRendererBase
|
RulerWidth
Gets or sets the width of the ruler.
Declaration
public int RulerWidth { get; set; }
Property Value
System.Int32
The width of the ruler. |
ScaledHourFontsCache
Declaration
protected virtual Dictionary<float, Font> ScaledHourFontsCache { get; }
Property Value
System.Collections.Generic.Dictionary<System.Single, System.Drawing.Font>
|
ScaledMinutesFontsCache
Declaration
protected virtual Dictionary<float, Font> ScaledMinutesFontsCache { get; }
Property Value
System.Collections.Generic.Dictionary<System.Single, System.Drawing.Font>
|
SectionLineColor
Gets or sets the section line color.
Declaration
public Color SectionLineColor { get; set; }
Property Value
System.Drawing.Color
The section line color. |
SectionLineStartPosition
Gets or sets the section line start position.
Declaration
public int SectionLineStartPosition { get; set; }
Property Value
System.Int32
The section line start position. |
SelectedTimeZone
Gets or sets the selected time zone.
Declaration
public SchedulerTimeZone SelectedTimeZone { get; set; }
Property Value
SchedulerTimeZone
The selected time zone. |
SeparatorsOffset
Gets or sets the separators offset.
Declaration
public float SeparatorsOffset { get; set; }
Property Value
System.Single
The separators offset. |
ShowCurrentTime
Gets or sets a value indicating whether to show the current time
Declaration
public bool ShowCurrentTime { get; set; }
Property Value
System.Boolean
|
StartScale
Gets or sets the start scale.
Declaration
public int StartScale { get; set; }
Property Value
System.Int32
The start scale. |
StartScaleMinutes
Gets or sets the start scale minutes.
Declaration
public int StartScaleMinutes { get; set; }
Property Value
System.Int32
|
TimePointerStyle
Gets or sets the time pointer style.
Declaration
public RulerCurrentTimePointer TimePointerStyle { get; set; }
Property Value
RulerCurrentTimePointer
The time pointer style. |
ViewTimeZone
Gets the view time zone.
Declaration
public SchedulerTimeZone ViewTimeZone { get; }
Property Value
SchedulerTimeZone
The view time zone. |
Methods
CallActiveViewOnPropertyChanged()
Declaration
protected virtual void CallActiveViewOnPropertyChanged()
CreateChildElements()
Creates the child elements.
Declaration
protected override void CreateChildElements()
Overrides
DisposeManagedResources()
Declaration
protected override void DisposeManagedResources()
Overrides
GetHourItemBounds(Int32)
Declaration
public RectangleF GetHourItemBounds(int row)
Parameters
System.Int32
row
|
Returns
System.Drawing.RectangleF
|
GetScaledHourFont(Single)
Declaration
protected virtual Font GetScaledHourFont(float scale)
Parameters
System.Single
scale
|
Returns
System.Drawing.Font
|
GetScaledMinutesFont(Single)
Declaration
protected virtual Font GetScaledMinutesFont(float scale)
Parameters
System.Single
scale
|
Returns
System.Drawing.Font
|
InitializeFields()
MeasureOverride(SizeF)
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
System.Drawing.SizeF
availableSize
|
Returns
System.Drawing.SizeF
|
Overrides
OnFontChanged(EventArgs)
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnPropertyChanged(RadPropertyChangedEventArgs)
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
RadPropertyChangedEventArgs
e
|
Overrides
PaintPrimitive(IGraphics, Single, SizeF)
Virtual function that draws the primitive on the screen.
Declaration
public override void PaintPrimitive(IGraphics graphics, float angle, SizeF scale)
Parameters
IGraphics
graphics
|
System.Single
angle
|
System.Drawing.SizeF
scale
|