Class ToggleButton
Represents the Toggle Button.
Namespace: Syncfusion.iOS.Buttons
Assembly: Syncfusion.Buttons.iOS.dll
Syntax
public abstract class ToggleButton : UIButton
Constructors
ToggleButton()
Initializes a new instance of the ToggleButton class.
Declaration
protected ToggleButton()
ToggleButton(IntPtr)
Initializes a new instance of the ToggleButton class.
Declaration
protected ToggleButton(IntPtr handle)
Parameters
Type | Name | Description |
---|---|---|
System.IntPtr | handle | The handle. |
Properties
CheckedColor
Gets or sets the color of the ToggleButton when the IsChecked is set to true.
Declaration
public virtual UIColor CheckedColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
ControlSize
Gets or sets a control size of a CheckBox
Declaration
public nfloat ControlSize { get; set; }
Property Value
Type |
---|
System.nfloat |
IsChecked
Gets or sets a value indicating whether the ToggleButton is in the checked state.
Declaration
public virtual Nullable<bool> IsChecked { get; set; }
Property Value
Type |
---|
System.Nullable<System.Boolean> |
IsThreeState
Gets or sets a value indicating whether the control supports three states.
Declaration
public virtual bool IsThreeState { get; set; }
Property Value
Type |
---|
System.Boolean |
TitleEdgeInsets
The insets or outsets for the RectangleF around this UIButton's CurrentTitle.
Declaration
public override UIEdgeInsets TitleEdgeInsets { get; set; }
Property Value
Type |
---|
UIKit.UIEdgeInsets |
UncheckedColor
Gets or sets the color of the ToggleButton when the IsChecked is set to false.
Declaration
public virtual UIColor UncheckedColor { get; set; }
Property Value
Type |
---|
UIKit.UIColor |
Methods
Dispose(Boolean)
Handles the dispose.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | The dispose |
LayoutSubviews()
Lays out sub views.
Declaration
public override void LayoutSubviews()
SizeThatFits(CGSize)
The override size method.
Declaration
public override CGSize SizeThatFits(CGSize size)
Parameters
Type | Name | Description |
---|---|---|
CoreGraphics.CGSize | size | The size value. |
Returns
Type | Description |
---|---|
CoreGraphics.CGSize | The return value. |
Events
StateChanged
Event handles when value changed.
Declaration
public event EventHandler<StateChangedEventArgs> StateChanged
Event Type
Type |
---|
System.EventHandler<StateChangedEventArgs> |