Back to Devexpress

DxRangeSelectorSliderMarker.PaddingTopBottom Property

blazor-devexpress-dot-blazor-dot-dxrangeselectorslidermarker-3d53a5e6.md

latest2.6 KB
Original Source

DxRangeSelectorSliderMarker.PaddingTopBottom Property

Specifies the padding between the top or bottom marker edge and marker content.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

csharp
[DefaultValue(2)]
[Parameter]
public int PaddingTopBottom { get; set; }

Property Value

TypeDefaultDescription
Int322

The padding in pixels.

|

Remarks

DxRangeSelector displays sliders that allow a user to select a range. Sliders consist of handles and markers.

Use the PaddingLeftRight or PaddingTopBottom property to add or remove empty space around marker content.

The following code snippet removes paddings between marker edges and content:

razor
<DxRangeSelector Width="1000px"
                 Height="400px"
                 SelectedRangeStartValue="@(new DateTime(2024, 2, 1))"
                 SelectedRangeEndValue="@(new DateTime(2024, 2, 14))">
    <DxRangeSelectorSliderMarker PaddingLeftRight="0"
                                 PaddingTopBottom="0">
        <DxTextFormatSettings Type="TextFormat.MonthAndDay" />
    </DxRangeSelectorSliderMarker>
    <DxRangeSelectorScale StartValue="@(new DateTime(2024, 1, 1))"
                          EndValue="@(new DateTime(2024, 6, 1))"
                          MinorTickInterval="ChartAxisInterval.Day"
                          TickInterval="ChartAxisInterval.Week"
                          MaxRange="ChartAxisInterval.Month"
                          MinRange="ChartAxisInterval.Week"
                          ValueType="ChartAxisDataType.DateTime">
        <DxRangeSelectorScaleMarker Visible="false" />
    </DxRangeSelectorScale>
</DxRangeSelector>

Refer to the DxRangeSelectorSliderMarker class description for additional information.

See Also

DxRangeSelectorSliderMarker Class

DxRangeSelectorSliderMarker Members

DevExpress.Blazor Namespace