New to Telerik UI for WPFStart a free 30-day trial

Represents the default TickLength provider.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class AutomaticTickLengthProvider : ITickProvider

Inheritance: objectAutomaticTickLengthProvider

Implements: ITickProvider

Constructors

Initializes a new instance of the AutomaticTickLengthProvider class.

C#
public AutomaticTickLengthProvider()

Initializes a new instance of the AutomaticTickLengthProvider class.

C#
public AutomaticTickLengthProvider(Threshold threshold)
Parameters:thresholdThreshold

The Threshold to use while determining the tick lengths.

Fields

The default AutomaticTickLengthProvider for major ticks.

C#
public static readonly AutomaticTickLengthProvider MajorProvider

The default AutomaticTickLengthProvider for minor ticks.

C#
public static readonly AutomaticTickLengthProvider MinorProvider

Properties

The Threshold to use while determining the tick lengths.

C#
public Threshold Threshold { get; set; }

Methods

Indicates whether this instance and a specified object are equal.

C#
public override bool Equals(object obj)
Parameters:objobject

Another object to compare to.

Returns:

bool

True if obj and this instance are the same type and represent the same Threshold; otherwise, false.

Overrides: object.Equals(object)

Gets the format string.

C#
public string GetFormatString(IFormatProvider formatInfo, string formatString, DateTime currentStart)
Parameters:formatInfoIFormatProvider

The format info.

formatStringstring

The format string.

currentStartDateTime

The current start.

Returns:

string

Implements: ITickProvider.GetFormatString(IFormatProvider, string, DateTime)

Gets the next start.

C#
public DateTime GetNextStart(TimeSpan pixelLength, DateTime currentStart)
Parameters:pixelLengthTimeSpan

Length of the pixel in ticks.

currentStartDateTime

The current start.

Returns:

DateTime

Implements: ITickProvider.GetNextStart(TimeSpan, DateTime)