Class RadCheckBox
Represents a check box. The RadCheckBox class is a simple wrapper for the RadCheckBoxElement class. The RadCheckBox acts to transfer events to and from its corresponding RadCheckBoxElement. The RadCheckBoxElement which is essentially the RadCheckBox control may be nested in other telerik controls.
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class RadCheckBox : RadToggleButton, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IPCHost, IAnalyticsProvider
Constructors
RadCheckBox()
Declaration
public RadCheckBox()
Properties
AutoSize
Gets or sets a value indicating whether the control is automatically resized to display its entire contents.
Declaration
public override bool AutoSize { get; set; }
Property Value
System.Boolean
|
Overrides
ButtonElement
Gets the instance of RadCheckBoxElement wrapped by this control. RadCheckBoxElement is the main element in the hierarchy tree and encapsulates the actual functionality of RadCheckBox.
Declaration
public RadCheckBoxElement ButtonElement { get; }
Property Value
RadCheckBoxElement
|
CheckAlignment
Gets or sets a value indicating the alignment of the check box.
Declaration
[RadPropertyDefaultValue("CheckAlignment", typeof(RadCheckBoxElement))]
[RadDescription("CheckAlignment", typeof(RadCheckBoxElement))]
public ContentAlignment CheckAlignment { get; set; }
Property Value
System.Drawing.ContentAlignment
|
Checked
Gets or sets value indicating the checked state of the checkbox.
Declaration
public bool Checked { get; set; }
Property Value
System.Boolean
|
Remarks
Since RadCheckBox is tri-state based (ToggleState property) the Checked property is provided for compatibility only. Checked=true corresponds to ToggleState.On and Checked=false corresponds to ToggleState.Off. If value of ToggleState property equals Indeterminate, value of Checked property is 'false'.
DefaultSize
Declaration
protected override Size DefaultSize { get; }
Property Value
System.Drawing.Size
|
Overrides
Font
Gets or sets the Font of the control. This actually the Font property of the root element.
Declaration
public override Font Font { get; set; }
Property Value
System.Drawing.Font
|
Overrides
IsChecked
Declaration
public override bool IsChecked { get; set; }
Property Value
System.Boolean
|
Overrides
UseMnemonic
Gets or sets a value indication whether mnemonics are used.
Declaration
public bool UseMnemonic { get; set; }
Property Value
System.Boolean
|
Methods
ButtonElement_ToggleStateChanged(Object, StateChangedEventArgs)
Declaration
protected override void ButtonElement_ToggleStateChanged(object sender, StateChangedEventArgs args)
Parameters
System.Object
sender
|
StateChangedEventArgs
args
|
Overrides
ButtonElement_ToggleStateChanging(Object, StateChangingEventArgs)
Declaration
protected override void ButtonElement_ToggleStateChanging(object sender, StateChangingEventArgs args)
Parameters
System.Object
sender
|
StateChangingEventArgs
args
|
Overrides
ControlDefinesThemeForElement(RadElement)
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
RadElement
element
|
Returns
System.Boolean
|
Overrides
CreateAccessibilityInstance()
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
System.Windows.Forms.AccessibleObject
|
Overrides
CreateButtonElement()
Create main button element that is specific for RadCheckBox.
Declaration
protected override RadButtonElement CreateButtonElement()
Returns
RadButtonElement
The element that encapsulates the functionality of RadCheckBox |
Overrides
OnEnabledChanged(EventArgs)
Declaration
protected override void OnEnabledChanged(EventArgs e)
Parameters
System.EventArgs
e
|
Overrides
OnThemeChanged()
res_CheckStateChanged(Object, EventArgs)
Declaration
protected override void res_CheckStateChanged(object sender, EventArgs e)
Parameters
System.Object
sender
|
System.EventArgs
e
|
Overrides
res_CheckStateChanging(Object, CheckStateChangingEventArgs)
Declaration
protected override void res_CheckStateChanging(object sender, CheckStateChangingEventArgs args)
Parameters
System.Object
sender
|
CheckStateChangingEventArgs
args
|
Overrides
res_PropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected override void res_PropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
System.Object
sender
|
System.ComponentModel.PropertyChangedEventArgs
e
|
Overrides
SetBackColorThemeOverrides()
Declaration
protected override void SetBackColorThemeOverrides()