Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ToggleButton - Xamarin.iOS API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ToggleButton

    Represents the Toggle Button.

    Inheritance
    System.Object
    ToggleButton
    SfCheckBox
    SfRadioButton
    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 Description
    UIKit.UIColor

    ControlSize

    Gets or sets a control size of a CheckBox

    Declaration
    public nfloat ControlSize { get; set; }
    Property Value
    Type Description
    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 Description
    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 Description
    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 Description
    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 Description
    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()

    Events

    StateChanged

    Event handles when value changed.

    Declaration
    public event EventHandler<StateChangedEventArgs> StateChanged
    Event Type
    Type Description
    System.EventHandler<StateChangedEventArgs>
    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved