Skip to main content
All docs
V25.1
  • Bar

    BarToggleSwitchItem.ThumbWidth Property

    Gets or sets the width of the editor’s thumb in pixels.

    Namespace: DevExpress.XtraBars

    Assembly: DevExpress.XtraBars.v25.1.dll

    NuGet Package: DevExpress.Win.Navigation

    Declaration

    [DefaultValue(0)]
    [DXCategory("Layout")]
    public int ThumbWidth { get; set; }

    Property Value

    Type Default Description
    Int32 0

    The thumb width.

    Remarks

    The ThumbWidth property specifies the width of the rectangular thumb in skins such as Visual Studio 2010, Office 2013, and others with similar visual styles. In these skins, the overall width of the toggle switch editor is calculated as the product of ThumbWidth and EditorToThumbWidthRatio property values.

    WinForms - Toggle Switch Custom Thumb Width, DevExpress

    The ThumbWidth property has no effect in skins that render a circular thumb (for instance, WXI, Office 2019, Basic).

    See Also