Skip to main content

DxDropDown.HorizontalOffset Property

Gets the window’s horizontal offset.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public int HorizontalOffset { get; set; }

Property Value

Type Description
Int32

The horizontal offset in pixels.

Remarks

Use the PositionTarget and PositionMode properties to specify the position where the drop-down window appears. The HorizontalOffset and VerticalOffset properties allow you to offset the window relative to the selected position.

<DxButton Id="showDDbtton" Click="() => IsOpen = true">Show a drop-down window</DxButton>
<DxDropDown PositionTarget="#showDDbtton"
            PositionMode="DropDownPositionMode.Bottom"
            HorizontalOffset="120"
            VerticalOffset="70"
            Width="210px"
            BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit."
            @bind-IsOpen="@IsOpen">
</DxDropDown>

@code {
    bool IsOpen { get; set; } = false;
}

Blazor DropDown Offsets

See Also