New to Telerik UI for WinForms? Start a free 30-day trial

Supplies the initial text, label context, and time when the scheduler raises RulerTextFormatting.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.Scheduler.dll

Syntax:

C#
public class RulerTextFormattingEventArgs : EventArgs

Inheritance: objectEventArgsRulerTextFormattingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for a ruler label before the scheduler raises the formatting event.

C#
public RulerTextFormattingEventArgs(string text, RulerTextFormattingContext context, DateTime time)
Parameters:textstring

The initial label text, which an event handler can replace through Text.

contextRulerTextFormattingContext

Identifies whether the label is for an hour, minute, or sub-hour section.

timeDateTime

The date and time represented by the label.

Properties

Gets the context of the current operation.

C#
public RulerTextFormattingContext Context { get; }

Gets or sets the text that will be drawn.

C#
public string Text { get; set; }

Gets the time which will be formatted.

C#
public DateTime Time { get; }