menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RadialSlider - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class RadialSlider

    Represents the class to apply the theme for RadialSlider control.

    Inheritance
    System.Object
    BaseControl
    RadialSlider
    Implements
    IThemeProvider
    IVisualStyle
    System.IDisposable
    Inherited Members
    BaseControl.CanApplyTheme
    BaseControl.CanOverrideStyle
    BaseControl.ControlName
    BaseControl.GetActiveThemeName()
    BaseControl.IsVisualStyleEnabled
    BaseControl.IThemeProvider.BaseThemeName
    BaseControl.IVisualStyle.VisualTheme
    BaseControl.RaiseThemeChanged(Object, ThemeChangedEventArgs)
    BaseControl.ThemeName
    BaseControl.ThemeNameChanged
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class RadialSlider : BaseControl, IThemeProvider, IVisualStyle, IDisposable

    Constructors

    RadialSlider()

    Declaration
    public RadialSlider()

    Properties

    BackColor

    Hide Controls BackColor

    Declaration
    public override Color BackColor { get; }
    Property Value
    Type
    System.Drawing.Color

    BackgroundColor

    Gets/Sets the Control backcolor

    Declaration
    public Color BackgroundColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    BeforeTouchSize

    Gets/Sets Control size before touch enabled

    Declaration
    [Obsolete("This property will be removed in a future version.")]
    public Size BeforeTouchSize { get; set; }
    Property Value
    Type
    System.Drawing.Size

    CreateParams

    Avoid flickering

    Declaration
    protected override CreateParams CreateParams { get; }
    Property Value
    Type
    System.Windows.Forms.CreateParams

    DefaultSize

    Returns size based on current DPI

    Declaration
    protected override Size DefaultSize { get; }
    Property Value
    Type
    System.Drawing.Size

    EnableTouchMode

    Gets or sets value to enable or disable the Touchmode to the controls.

    Declaration
    public bool EnableTouchMode { get; set; }
    Property Value
    Type
    System.Boolean
    Remarks

    Scale factor will be updated automatically if scalefactor is equal to 1

    EndAngle

    Gets or sets the end angle value.

    Declaration
    public double EndAngle { get; set; }
    Property Value
    Type
    System.Double

    Font

    Gets/Sets the values for Font

    Declaration
    public override Font Font { get; set; }
    Property Value
    Type
    System.Drawing.Font

    InnerCircleColor

    Gets/Sets the values for Slider circle color

    Declaration
    public Color InnerCircleColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    LinesColor

    Gets/Sets the values for slider lines color

    Declaration
    public Color LinesColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    MaximumValue

    Gets/Sets the values for Maximum value

    Declaration
    public double MaximumValue { get; set; }
    Property Value
    Type
    System.Double

    MinimumValue

    Gets/Sets the values for Minimum value

    Declaration
    public double MinimumValue { get; set; }
    Property Value
    Type
    System.Double

    NeedleType

    Gets/Sets the valur for Slider needle Type

    Declaration
    public SliderNeedleType NeedleType { get; set; }
    Property Value
    Type
    SliderNeedleType

    NeedleWidth

    Slider Needle width

    Declaration
    public int NeedleWidth { get; set; }
    Property Value
    Type
    System.Int32

    OuterCircleColor

    Gets/Sets the values for Slider outer circle color

    Declaration
    public Color OuterCircleColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    RadialDirection

    Gets or sets the radial direction for the slider values to be arranged.

    Declaration
    public RadialDirection RadialDirection { get; set; }
    Property Value
    Type
    RadialDirection

    RangeStyle

    Gets/Sets the values for Range style

    Declaration
    public RangeStyles RangeStyle { get; set; }
    Property Value
    Type
    RangeStyles

    ShowOuterCircle

    Gets/Sets the values for Slider circle width

    Declaration
    public bool ShowOuterCircle { get; set; }
    Property Value
    Type
    System.Boolean

    ShowRangeBorder

    Gets/Sets a value to show or hide the range border for framestyle

    Declaration
    public bool ShowRangeBorder { get; set; }
    Property Value
    Type
    System.Boolean

    SliderDivision

    Gets/Sets the values for Slider Division

    Declaration
    public int SliderDivision { get; set; }
    Property Value
    Type
    System.Int32

    SliderNeedleColor

    Gets/Sets the values for Slider needle color

    Declaration
    public Color SliderNeedleColor { get; set; }
    Property Value
    Type
    System.Drawing.Color

    SliderStringFormat

    Gets/Sets the values for SliderSringFormat

    Declaration
    public string SliderStringFormat { get; set; }
    Property Value
    Type
    System.String

    SliderStyle

    Gets/Sets the values for Slider style

    Declaration
    public SliderStyles SliderStyle { get; set; }
    Property Value
    Type
    SliderStyles

    StartAngle

    Gets or sets the start angle value.

    Declaration
    public double StartAngle { get; set; }
    Property Value
    Type
    System.Double

    Style

    Gets or sets the style.

    Declaration
    public RadialSliderStyle Style { get; set; }
    Property Value
    Type
    RadialSliderStyle

    ThemeStyle

    Gets or sets the RadialSliderVisualStyle value used to customize the appearance of the RadialSlider.

    Declaration
    public RadialSliderVisualStyle ThemeStyle { get; set; }
    Property Value
    Type
    RadialSliderVisualStyle
    Remarks

    This ThemeStyle settings will be applied only when the VisualStyleBased theme has been applied to the control.

    Value

    Gets/Sets value for Slider

    Declaration
    public double Value { get; set; }
    Property Value
    Type
    System.Double

    Methods

    ApplyScaleToControl(Single)

    Scale the control based on the scale factor passed in the argument.

    Declaration
    [Obsolete("This method will be removed in a future version.")]
    public void ApplyScaleToControl(float scaleFactor)
    Parameters
    Type Name Description
    System.Single scaleFactor

    value to scale the factor based upon.

    CreateAccessibilityInstance()

    Declaration
    protected override AccessibleObject CreateAccessibilityInstance()
    Returns
    Type
    System.Windows.Forms.AccessibleObject

    Dispose(Boolean)

    Clean up any resources being used.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    true if managed resources should be disposed; otherwise, false.

    GetControlName(String)

    Helps to apply the ControlName settings in control

    Declaration
    public override string GetControlName(string controlName)
    Parameters
    Type Name Description
    System.String controlName
    Returns
    Type
    System.String
    Overrides
    BaseControl.GetControlName(String)

    OnCanApplyThemeChanged(Boolean)

    Helps to apply the CanApplyTheme settings in control

    Declaration
    public override void OnCanApplyThemeChanged(bool canApplyTheme)
    Parameters
    Type Name Description
    System.Boolean canApplyTheme
    Overrides
    BaseControl.OnCanApplyThemeChanged(Boolean)

    OnCanOverrideStyleChanged(Boolean)

    Helps to apply the CanOverriderStyle settings in control

    Declaration
    public override void OnCanOverrideStyleChanged(bool canOverriderStyle)
    Parameters
    Type Name Description
    System.Boolean canOverriderStyle
    Overrides
    BaseControl.OnCanOverrideStyleChanged(Boolean)

    OnMouseDown(MouseEventArgs)

    Gets the current point

    Declaration
    protected override void OnMouseDown(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    e.X and e.Y used for find the angle

    OnMouseLeave(EventArgs)

    Sets the value for dummy angle

    Declaration
    protected override void OnMouseLeave(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnMouseMove(MouseEventArgs)

    Gets the value for dummy angle

    Declaration
    protected override void OnMouseMove(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    e.X and e.Y used for calculating the dummy angle

    OnMouseUp(MouseEventArgs)

    Declaration
    protected override void OnMouseUp(MouseEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.MouseEventArgs e

    OnPaint(PaintEventArgs)

    drawing the control

    Declaration
    protected override void OnPaint(PaintEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.PaintEventArgs e

    OnResize(EventArgs)

    Size to Radial Slider

    Declaration
    protected override void OnResize(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnSizeChanged(EventArgs)

    Declaration
    protected override void OnSizeChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    OnThemeNameChanged(String)

    Helps to apply the ThemeName settings in control

    Declaration
    public override void OnThemeNameChanged(string themeName)
    Parameters
    Type Name Description
    System.String themeName

    ThemeName

    Overrides
    BaseControl.OnThemeNameChanged(String)

    OnValueChanged(Double, Double)

    Declaration
    protected void OnValueChanged(double DoubleValue, double SliderOldValue)
    Parameters
    Type Name Description
    System.Double DoubleValue
    System.Double SliderOldValue

    SetInnerCircleWidth(Int32)

    Sets the values to InnerCircleWidth

    Declaration
    public void SetInnerCircleWidth(int CircleWidth)
    Parameters
    Type Name Description
    System.Int32 CircleWidth

    Events

    DrawText

    Occurs when text is going to be drawn in RadialSlider.

    Declaration
    public event EventHandler<RadialSlider.DrawTextEventArgs> DrawText
    Event Type
    Type
    System.EventHandler<RadialSlider.DrawTextEventArgs>

    ValueChanged

    Values for angle chaged

    Declaration
    public event RadialSlider.ValueChangedEventHandler ValueChanged
    Event Type
    Type
    RadialSlider.ValueChangedEventHandler

    ValueChanging

    Values for angle changing

    Declaration
    public event RadialSlider.ValueChangingEventHandler ValueChanging
    Event Type
    Type
    RadialSlider.ValueChangingEventHandler

    Implements

    IThemeProvider
    IVisualStyle
    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved