Back to Devexpress

DxDropDown.HorizontalOffset Property

blazor-devexpress-dot-blazor-dot-dxdropdown-895763f0.md

latest1.7 KB
Original Source

DxDropDown.HorizontalOffset Property

Gets the window’s horizontal offset.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
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.

razor
<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;
}

See Also

DxDropDown Class

DxDropDown Members

DevExpress.Blazor Namespace