ClassRulerPrimitive
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.Scheduler.dll
Syntax:
public class RulerPrimitive : FillPrimitive, IDisposable, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IStylableNode, IPrimitive, IFillElement, IPrimitiveElement, IShapedElement
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementBasePrimitiveFillPrimitiveRulerPrimitive
Implements:
Inherited Members
Constructors
RulerPrimitive(RadScheduler, DayViewAppointmentsArea)
Initializes a new instance of the RulerPrimitive class.
Declaration
public RulerPrimitive(RadScheduler scheduler, DayViewAppointmentsArea area)
Parameters
scheduler
area
Fields
CurrentTimePointerColorProperty
Declaration
public static RadProperty CurrentTimePointerColorProperty
Field Value
EndScaleMinutesProperty
Declaration
public static RadProperty EndScaleMinutesProperty
Field Value
FormatStringsProperty
Declaration
public static RadProperty FormatStringsProperty
Field Value
HourLineColorProperty
Declaration
public static RadProperty HourLineColorProperty
Field Value
HourLineShadowColorProperty
Declaration
public static RadProperty HourLineShadowColorProperty
Field Value
HourLineStartPositionProperty
Declaration
public static RadProperty HourLineStartPositionProperty
Field Value
SectionLineColorProperty
Declaration
public static RadProperty SectionLineColorProperty
Field Value
SectionLineStartPositionProperty
Declaration
public static RadProperty SectionLineStartPositionProperty
Field Value
SeparatorsOffsetProperty
Declaration
public static RadProperty SeparatorsOffsetProperty
Field Value
ShowCurrentTimeProperty
Declaration
public static RadProperty ShowCurrentTimeProperty
Field Value
StartScaleMinutesProperty
Declaration
public static RadProperty StartScaleMinutesProperty
Field Value
TimePointerStyleProperty
Declaration
public static RadProperty TimePointerStyleProperty
Field Value
Properties
Border
Gets or sets the border.
Declaration
public BorderPrimitive Border { get; }
Property Value
The border.
CurrentTimePointerColor
Gets or sets the color of the current time pointer.
Declaration
[Browsable(true)]
public Color CurrentTimePointerColor { get; set; }
Property Value
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
DefaultSeparatorOffset
Gets or sets the default separator offset.
Declaration
public int DefaultSeparatorOffset { get; set; }
Property Value
The default separator offset.
EndScale
Gets or sets the end scale.
EndScaleMinutes
Gets or sets the end scale minutes.
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
HourLineColor
Gets or sets the hour line color.
Declaration
public Color HourLineColor { get; set; }
Property Value
The hour line color.
HourLineShadowColor
Gets or sets the hour line shadow color.
Declaration
public Color HourLineShadowColor { get; set; }
Property Value
The hour line shadow color.
HourLineStartPosition
Gets or sets the hour line start position.
Declaration
public int HourLineStartPosition { get; set; }
Property Value
The hour line start position.
MinutesFont
Gets or sets the minutes font.
Declaration
public Font MinutesFont { get; set; }
Property Value
The minutes font.
RangeFactor
Gets or sets the range factor.
Declaration
public ScaleRange RangeFactor { get; set; }
Property Value
The range factor.
RulerRenderer
Gets or sets the ruler primitive's renderer.
Declaration
public RulerRendererBase RulerRenderer { get; set; }
Property Value
RulerWidth
Gets or sets the width of the ruler.
Declaration
public int RulerWidth { get; set; }
Property Value
The width of the ruler.
SectionLineColor
Gets or sets the section line color.
Declaration
public Color SectionLineColor { get; set; }
Property Value
The section line color.
SectionLineStartPosition
Gets or sets the section line start position.
Declaration
public int SectionLineStartPosition { get; set; }
Property Value
The section line start position.
SelectedTimeZone
Gets or sets the selected time zone.
Declaration
public SchedulerTimeZone SelectedTimeZone { get; set; }
Property Value
The selected time zone.
SeparatorsOffset
Gets or sets the separators offset.
Declaration
public float SeparatorsOffset { get; set; }
Property Value
The separators offset.
ShowCurrentTime
Gets or sets a value indicating whether to show the current time
StartScale
Gets or sets the start scale.
Declaration
public int StartScale { get; set; }
Property Value
The start scale.
StartScaleMinutes
Gets or sets the start scale minutes.
TimePointerStyle
Gets or sets the time pointer style.
Declaration
public RulerCurrentTimePointer TimePointerStyle { get; set; }
Property Value
The time pointer style.
ViewTimeZone
Gets the view time zone.
Declaration
public SchedulerTimeZone ViewTimeZone { get; }
Property Value
The view time zone.
Methods
CallActiveViewOnPropertyChanged()
Declaration
protected virtual void CallActiveViewOnPropertyChanged()
CreateChildElements()
Creates the child elements.
Declaration
protected override void CreateChildElements()
Overrides
DisposeManagedResources()
Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.
Declaration
protected override void DisposeManagedResources()
Overrides
GetHourItemBounds(int)
Declaration
public RectangleF GetHourItemBounds(int row)
Parameters
row
Returns
InitializeFields()
Initializes member fields to their default values. This method is called prior the CreateChildItems one and allows for initialization of members on which child elements depend.
Declaration
protected override void InitializeFields()
Overrides
MeasureOverride(SizeF)
Measures the space required by the RadElement
Used by the layout system.
Declaration
protected override SizeF MeasureOverride(SizeF availableSize)
Parameters
availableSize
The size that is available to the RadElement. The available size can be infinity (to take the full size of the element)
Returns
The minimum size required by the element to be completely visible. Cannot be infinity.
Overrides
Remarks
In this method call to the Measure method of each child must be made.
OnFontChanged(EventArgs)
Raises the FontChanged event.
OnPropertyChanged(RadPropertyChangedEventArgs)
Called when a property value has changed, allowing for custom response to property changes.
Declaration
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
Parameters
e
The property changed event arguments.
Overrides
PaintPrimitive(IGraphics, float, SizeF)
Virtual function that draws the primitive on the screen.