WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class RadioButtonAdv

    Show / Hide Table of Contents

    Class RadioButtonAdv

    The RadioButtonAdv control is an alternative to the .Net RadioButton control. It has a very customizable border and background and supports advanced DataBinding.

    Inheritance
    System.Object
    BaseControl
    ThemedControl
    CheckRadioBase
    RadioButtonAdv
    Implements
    System.IDisposable
    System.Windows.Forms.IMessageFilter
    IThemeProvider
    IVisualStyle
    System.ComponentModel.ISupportInitialize
    System.ComponentModel.INotifyPropertyChanged
    Inherited Members
    CheckRadioBase.mbinitializing
    CheckRadioBase.mbtextRender
    CheckRadioBase.mrectBox
    CheckRadioBase.mrectText
    CheckRadioBase.mszImagedBox
    CheckRadioBase.malignCheckBox
    CheckRadioBase.mtextAlignment
    CheckRadioBase.malignText
    CheckRadioBase.mmouseDown
    CheckRadioBase.mmouseOver
    CheckRadioBase.mdrawFocusRectangle
    CheckRadioBase.mautoHeight
    CheckRadioBase.mimageCheckBox
    CheckRadioBase.mstretchImage
    CheckRadioBase.mwrapText
    CheckRadioBase.buttonState
    CheckRadioBase.textOffset
    CheckRadioBase.mshadowOffset
    CheckRadioBase.focusRect
    CheckRadioBase.mcheckedImage
    CheckRadioBase.muncheckedImage
    CheckRadioBase.mdisabledImage
    CheckRadioBase.mmouseOverCheckedImage
    CheckRadioBase.mmouseOverUncheckedImage
    CheckRadioBase.mindeterminateImage
    CheckRadioBase.mmouseOverIndetermImage
    CheckRadioBase.mborder3DStyle
    CheckRadioBase.mborderStyle
    CheckRadioBase.mborderSingle
    CheckRadioBase.backStyle
    CheckRadioBase.mborderColor
    CheckRadioBase.mhotBorderColor
    CheckRadioBase.mshadowColor
    CheckRadioBase.mgradientStart
    CheckRadioBase.mgradientEnd
    CheckRadioBase.tcd
    CheckRadioBase.m_TextFormatFlags
    CheckRadioBase.RaiseThemeChanged(Object, ThemeChangedEventArgs)
    CheckRadioBase.GetActiveThemeName()
    CheckRadioBase.ApplyScaleToControl(Single)
    CheckRadioBase.ShouldSerializeAutoSize()
    CheckRadioBase.ResetAutoSize()
    CheckRadioBase.GetPreferredSize(Size)
    CheckRadioBase.RecalculatePositions()
    CheckRadioBase.OnRightToLeftChanged(EventArgs)
    CheckRadioBase.OnMouseEnter(EventArgs)
    CheckRadioBase.OnMouseLeave(EventArgs)
    CheckRadioBase.OnMouseDown(MouseEventArgs)
    CheckRadioBase.OnMouseUp(MouseEventArgs)
    CheckRadioBase.OnSizeChanged(EventArgs)
    CheckRadioBase.OnEnter(EventArgs)
    CheckRadioBase.IsInputKey(Keys)
    CheckRadioBase.OnTextChanged(EventArgs)
    CheckRadioBase.OnFontChanged(EventArgs)
    CheckRadioBase.OnThemeChanged(EventArgs)
    CheckRadioBase.OnHandleDestroyed(EventArgs)
    CheckRadioBase.ThemeName
    CheckRadioBase.CanOverrideStyle
    CheckRadioBase.IThemeProvider.BaseThemeName
    CheckRadioBase.CanApplyTheme
    CheckRadioBase.ControlName
    CheckRadioBase.IVisualStyle.VisualTheme
    CheckRadioBase.UseMnemonic
    CheckRadioBase.BeforeTouchSize
    CheckRadioBase.EnableTouchMode
    CheckRadioBase.TextAlignment
    CheckRadioBase.TextContentAlignment
    CheckRadioBase.GradientEnd
    CheckRadioBase.GradientStart
    CheckRadioBase.BackgroundStyle
    CheckRadioBase.ShadowOffset
    CheckRadioBase.ShadowColor
    CheckRadioBase.TextShadow
    CheckRadioBase.WrapText
    CheckRadioBase.AutoEllipsis
    CheckRadioBase.StretchImage
    CheckRadioBase.ImageCheckBox
    CheckRadioBase.CheckAlign
    CheckRadioBase.AutoSize
    CheckRadioBase.AutoHeight
    CheckRadioBase.DrawFocusRectangle
    CheckRadioBase.Border3DStyle
    CheckRadioBase.BorderStyle
    CheckRadioBase.BorderSingle
    CheckRadioBase.HotBorderColor
    CheckRadioBase.BorderColor
    CheckRadioBase.MouseOverUncheckedImage
    CheckRadioBase.MouseOverCheckedImage
    CheckRadioBase.DisabledImage
    CheckRadioBase.UncheckedImage
    CheckRadioBase.CheckedImage
    CheckRadioBase.ImageCheckBoxSize
    CheckRadioBase.CheckedInt
    CheckRadioBase.UncheckedInt
    CheckRadioBase.CheckedString
    CheckRadioBase.UncheckedString
    CheckRadioBase.DefaultSize
    CheckRadioBase.ThemeNameChanged
    ThemedControl.WndProc(Message)
    ThemedControl.ThemesEnabled
    ThemedControl.ThemeChanged
    BaseControl.IsVisualStyleEnabled
    Namespace: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class RadioButtonAdv : CheckRadioBase, IDisposable, IMessageFilter, IThemeProvider, IVisualStyle, ISupportInitialize, INotifyPropertyChanged

    Constructors

    RadioButtonAdv()

    Initializes a new instance of the RadioButtonAdv class.

    Declaration
    public RadioButtonAdv()

    Properties

    BackColor

    Gets or sets BackColor of the RadioButtonAdv control.

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

    Checked

    Gets or sets a value indicating whether check state of the RadioButtonAdv.

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

    Font

    Gets or sets the System.Drawing.Font value for the control.

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

    IntValue

    Gets or sets checked RadioButtonAdv in current container according to TabIndex.

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

    MetroColor

    Gets or sets the theme color of the RadioButtonAdv.

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

    Office2007ColorScheme

    Gets or sets office 2007 color scheme of the RadioButtonAdv.

    Declaration
    public Office2007Theme Office2007ColorScheme { get; set; }
    Property Value
    Type Description
    Office2007Theme

    Office2010ColorScheme

    Gets or sets office 2010 color scheme of the RadioButtonAdv.

    Declaration
    public Office2010Theme Office2010ColorScheme { get; set; }
    Property Value
    Type Description
    Office2010Theme

    RaiseEventOnClick

    Gets or sets a value indicating whether OnClick event should be fired.

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

    Style

    Gets or sets an advanced appearance for the RadioButtonAdv.

    Declaration
    public RadioButtonAdvStyle Style { get; set; }
    Property Value
    Type Description
    RadioButtonAdvStyle

    ThemeStyle

    Gets or sets the TickControlVisualStyle value used to customize the appearance of the RadioButtonAdv.

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

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

    UseGDITextRendering

    Gets or sets a value indicating whether GDI Text renderer in RadioButtonAdv or not.

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

    Methods

    BeginInit()

    Signals the object that initialization is starting.

    Declaration
    public void BeginInit()

    Dispose(Boolean)

    Cleans up any resources being used.

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

    EndInit()

    Signals the object that initialization is complete.

    Declaration
    public void EndInit()

    GetControlName(String)

    Helps to apply the ControlName settings in control

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

    ControlName

    Returns
    Type Description
    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)

    OnCheckChanged(EventArgs)

    Raises the check changed event.

    Declaration
    protected virtual void OnCheckChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    OnClick(EventArgs)

    Raises the System.Windows.Forms.Control.Click event.

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

    An System.EventArgs that contains the event data.

    OnEnabledChanged(EventArgs)

    Declaration
    protected override void OnEnabledChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e
    Overrides
    CheckRadioBase.OnEnabledChanged(EventArgs)

    OnGroupCheckChanged(EventArgs)

    Raises the group check changed event.

    Declaration
    protected virtual void OnGroupCheckChanged(EventArgs e)
    Parameters
    Type Name Description
    System.EventArgs e

    The System.EventArgs instance containing the event data.

    OnHandleCreated(EventArgs)

    Raises the System.Windows.Forms.Control.HandleCreated event.

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

    Event Argument

    Overrides
    CheckRadioBase.OnHandleCreated(EventArgs)

    OnKeyDown(KeyEventArgs)

    Raises the System.Windows.Forms.Control.OnKeyDown(System.Windows.Forms.KeyEventArgs) event.

    Declaration
    protected override void OnKeyDown(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.KeyEventArgs e

    Key Event argument

    Overrides
    CheckRadioBase.OnKeyDown(KeyEventArgs)

    OnKeyUp(KeyEventArgs)

    Raises the System.Windows.Forms.Control.OnKeyUp(System.Windows.Forms.KeyEventArgs) event.

    Declaration
    protected override void OnKeyUp(KeyEventArgs e)
    Parameters
    Type Name Description
    System.Windows.Forms.KeyEventArgs e

    Key Event argument

    OnLeave(EventArgs)

    Raises the System.Windows.Forms.Control.OnLeave(System.EventArgs) event.

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

    Event argument

    Overrides
    CheckRadioBase.OnLeave(EventArgs)

    OnPaint(PaintEventArgs)

    Raises the paint event.

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

    The System.Windows.Forms.PaintEventArgs instance containing the event data.

    Overrides
    CheckRadioBase.OnPaint(PaintEventArgs)

    OnParentChanged(EventArgs)

    Raises the System.Windows.Forms.Control.ParentChanged event.

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

    An System.EventArgs that contains the event data.

    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)

    ProcessMnemonic(Char)

    Processes a mnemonic character.

    Declaration
    protected override bool ProcessMnemonic(char charCode)
    Parameters
    Type Name Description
    System.Char charCode

    The character to process.

    Returns
    Type Description
    System.Boolean

    true if the character was processed as a mnemonic by the control; otherwise, false.

    Events

    CheckChanged

    Occurs when the Checked property changed in RadioButtonAdv.

    Declaration
    public event EventHandler CheckChanged
    Event Type
    Type Description
    System.EventHandler

    GroupCheckChanged

    Occurs when the Checked property of RadioButtonAdv in group changes.

    Declaration
    public event EventHandler GroupCheckChanged
    Event Type
    Type Description
    System.EventHandler

    PropertyChanged

    Occurs when the Checked property changed in RadioButtonAdv.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type Description
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.IDisposable
    System.Windows.Forms.IMessageFilter
    IThemeProvider
    IVisualStyle
    System.ComponentModel.ISupportInitialize
    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved