Class
AutomaticTickLengthProvider

Represents the default TickLength provider.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

cs-api-definition
public class AutomaticTickLengthProvider : ITickProvider

Inheritance: objectAutomaticTickLengthProvider

Implements: ITickProvider

Constructors

AutomaticTickLengthProvider()

Initializes a new instance of the AutomaticTickLengthProvider class.

Declaration

cs-api-definition
public AutomaticTickLengthProvider()

AutomaticTickLengthProvider(Threshold)

Initializes a new instance of the AutomaticTickLengthProvider class.

Declaration

cs-api-definition
public AutomaticTickLengthProvider(Threshold threshold)

Parameters

threshold

Threshold

The Threshold to use while determining the tick lengths.

Fields

MajorProvider

The default AutomaticTickLengthProvider for major ticks.

Declaration

cs-api-definition
public static readonly AutomaticTickLengthProvider MajorProvider

Field Value

AutomaticTickLengthProvider

MinorProvider

The default AutomaticTickLengthProvider for minor ticks.

Declaration

cs-api-definition
public static readonly AutomaticTickLengthProvider MinorProvider

Field Value

AutomaticTickLengthProvider

Properties

Threshold

The Threshold to use while determining the tick lengths.

Declaration

cs-api-definition
public Threshold Threshold { get; set; }

Property Value

Threshold

Methods

Equals(object)

Indicates whether this instance and a specified object are equal.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetFormatString(IFormatProvider, string, DateTime)

Gets the format string.

Declaration

cs-api-definition
public string GetFormatString(IFormatProvider formatInfo, string formatString, DateTime currentStart)

Parameters

formatInfo

IFormatProvider

The format info.

formatString

string

The format string.

currentStart

DateTime

The current start.

Returns

string

Implements ITickProvider.GetFormatString(IFormatProvider, string, DateTime)

GetNextStart(TimeSpan, DateTime)

Gets the next start.

Declaration

cs-api-definition
[SuppressMessage("Usage", "CA2201:Do not raise reserved exception types", Justification = "<Pending>")]
public DateTime GetNextStart(TimeSpan pixelLength, DateTime currentStart)

Parameters

pixelLength

TimeSpan

Length of the pixel in ticks.

currentStart

DateTime

The current start.

Returns

DateTime

Implements ITickProvider.GetNextStart(TimeSpan, DateTime)