Skip to main content

TimescaleRuler(TimescaleUnit, String, Int32, Double, Double, IFormatProvider) Constructor

Initializes a new instance of the TimescaleRuler class with the specified settings.

Namespace: DevExpress.Xpf.Gantt

Assembly: DevExpress.Xpf.Gantt.v23.2.dll

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public TimescaleRuler(
    TimescaleUnit unit,
    string displayFormat,
    int count = 1,
    double minWidth = 1,
    double maxWidth = Infinity,
    IFormatProvider formatProvider = null
)

Parameters

Name Type Description
unit TimescaleUnit

The selected measure units of the timescale ruler. This value is assigned to the Unit property.

displayFormat String

The display format for the timescale labels. This value is assigned to the DisplayFormat property.

Optional Parameters

Name Type Default Description
count Int32 1

The count of units displayed between two timescale tick marks. This value is assigned to the Count property.

minWidth Double 1

The minimum distance between tick marks in pixels when the timescale is displayed. This value is assigned to the MinWidth property.

maxWidth Double

The maximum distance between tick marks in pixels when the timescale is displayed. This value is assigned to the MaxWidth property.

formatProvider IFormatProvider null

The format provider. This value is assigned to the FormatProvider property.

See Also