Skip to main content
All docs
V25.2
  • RibbonSpinEditValueChangedEventArgs<TValue>.Item Property

    Returns information about an updated spin editor item.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v25.2.dll

    NuGet Package: DevExpress.Blazor

    Declaration

    public IRibbonSpinEdit<TValue> Item { get; }

    Property Value

    Type Description
    IRibbonSpinEdit<TValue>

    An object that contains information about an updated spin editor item.

    Remarks

    The following code snippet displays the current value of the Ribbon’s spin editor:

    <DxRibbon NodeEvent="OnNodeEvent">
        <DxRibbonTab Text="Home">
            <DxRibbonGroup>
                <DxRibbonSpinEditItem Value="fontSize" />
            </DxRibbonGroup>
        </DxRibbonTab>
    </DxRibbon>
    
    <p>@Notification</p>
    
    @code {
        int fontSize = 12;
        string Notification = "";
    
        private void OnNodeEvent(RibbonNodeEventArgs args) {
            if(args is RibbonSpinEditValueChangedEventArgs<int> eventArgs) {
                Notification = $"Spin editor value: {eventArgs.Item.Value}";
            }
        }
    }
    
    See Also