RulerPrimitive
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
Initializes a new instance of the RulerPrimitive class.
public RulerPrimitive(RadScheduler scheduler, DayViewAppointmentsArea area)
Fields
public static RadProperty CurrentTimePointerColorProperty
public static RadProperty EndScaleMinutesProperty
public static RadProperty EndScaleProperty
public static RadProperty FormatStringsProperty
public static RadProperty HourLineColorProperty
public static RadProperty HourLineShadowColorProperty
public static RadProperty HourLineStartPositionProperty
public static RadProperty MinutesFontProperty
public static RadProperty RangeFactorProperty
public static RadProperty RulerWidthProperty
public static RadProperty SectionLineColorProperty
public static RadProperty SectionLineStartPositionProperty
public static RadProperty SeparatorsOffsetProperty
public static RadProperty ShowCurrentTimeProperty
public static RadProperty StartScaleMinutesProperty
public static RadProperty StartScaleProperty
public static RadProperty TimePointerStyleProperty
Properties
Gets or sets the border.
public BorderPrimitive Border { get; }
The border.
Gets or sets the color of the current time pointer.
[Browsable(true)]
public Color CurrentTimePointerColor { get; set; }
The color of the current time pointer.
Gets or sets the width of the Current time pointerof the ruler.
public float CurrentTimePointerWidth { get; set; }
public float DefaultOffset { get; }
Gets or sets the default separator offset.
public int DefaultSeparatorOffset { get; set; }
The default separator offset.
Gets or sets the end scale.
public int EndScale { get; set; }
The end scale.
Gets or sets the end scale minutes.
public int EndScaleMinutes { get; set; }
Gets or sets and instance holding the format strings used for drawing time representations on the ruler.
public RulerFormatStrings FormatStrings { get; set; }
Gets or sets the hour line color.
public Color HourLineColor { get; set; }
The hour line color.
Gets or sets the hour line shadow color.
public Color HourLineShadowColor { get; set; }
The hour line shadow color.
Gets or sets the hour line start position.
public int HourLineStartPosition { get; set; }
The hour line start position.
Gets or sets the minutes font.
public Font MinutesFont { get; set; }
The minutes font.
Gets or sets the range factor.
public ScaleRange RangeFactor { get; set; }
The range factor.
Gets or sets the ruler primitive's renderer.
public RulerRendererBase RulerRenderer { get; set; }
Gets or sets the width of the ruler.
public int RulerWidth { get; set; }
The width of the ruler.
protected virtual Dictionary<float, Font> ScaledHourFontsCache { get; }
protected virtual Dictionary<float, Font> ScaledMinutesFontsCache { get; }
Gets or sets the section line color.
public Color SectionLineColor { get; set; }
The section line color.
Gets or sets the section line start position.
public int SectionLineStartPosition { get; set; }
The section line start position.
Gets or sets the selected time zone.
public SchedulerTimeZone SelectedTimeZone { get; set; }
The selected time zone.
Gets or sets the separators offset.
public float SeparatorsOffset { get; set; }
The separators offset.
Gets or sets a value indicating whether to show the current time
public bool ShowCurrentTime { get; set; }
Gets or sets the start scale.
public int StartScale { get; set; }
The start scale.
Gets or sets the start scale minutes.
public int StartScaleMinutes { get; set; }
Gets or sets the time pointer style.
public RulerCurrentTimePointer TimePointerStyle { get; set; }
The time pointer style.
Gets the view time zone.
public SchedulerTimeZone ViewTimeZone { get; }
The view time zone.
Methods
protected virtual void CallActiveViewOnPropertyChanged()
Creates the child elements.
protected override void CreateChildElements()
Overrides:
Releases managed resources by clearing the property store and disposing value animators to prevent memory leaks.
protected override void DisposeManagedResources()
Overrides:
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.
protected override void InitializeFields()
Overrides:
Measures the space required by the RadElement
Used by the layout system.
protected override SizeF MeasureOverride(SizeF 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:
In this method call to the Measure method of each child must be made.
Raises the FontChanged event.
Called when a property value has changed, allowing for custom response to property changes.
protected override void OnPropertyChanged(RadPropertyChangedEventArgs e)
The property changed event arguments.
Overrides: