Skip to main content

TimescaleRuler(TimescaleUnit, 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.v24.1.dll

NuGet Package: DevExpress.Wpf.Gantt

Declaration

public TimescaleRuler(
    TimescaleUnit unit,
    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.

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