Class DataFormSwitchEditor
Represents a class to handle the bool type property editor with UISwitch.
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.iOS.DataForm.Editors
Assembly: Syncfusion.SfDataForm.iOS.dll
Syntax
public class DataFormSwitchEditor : DataFormEditor<UISwitch>, IDisposable
Constructors
DataFormSwitchEditor(SfDataForm)
Initializes a new instance of the DataFormSwitchEditor class.
Declaration
public DataFormSwitchEditor(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm |
Methods
OnCommitValue(UISwitch)
Commits the value of the specific editor to corresponding property in the business object.
Declaration
protected override void OnCommitValue(UISwitch view)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UISwitch | view | the editor. |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnCommitValue(UIKit.UISwitch)
OnCreateEditorView()
Create and return a new instance of the UIKit.UISwitch.
Declaration
protected override UISwitch OnCreateEditorView()
Returns
Type | Description |
---|---|
UIKit.UISwitch | Returns the UIKit.UISwitch editor. |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnCreateEditorView()
OnInitializeView(DataFormItem, UISwitch)
Initialize View with DataFormItem property info.
Declaration
protected override void OnInitializeView(DataFormItem dataFormItem, UISwitch view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The dataFormItem is property info of Editor |
UIKit.UISwitch | view | The UIview. |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnInitializeView(Syncfusion.iOS.DataForm.DataFormItem, UIKit.UISwitch)
OnUnWireEvents(UISwitch)
UnWires events for DataFormItemView's editor view.
Declaration
protected override void OnUnWireEvents(UISwitch view)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UISwitch | view | The view to unwire the events |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnUnWireEvents(UIKit.UISwitch)
OnUpdateValue(DataFormItem, UISwitch)
Declaration
protected override void OnUpdateValue(DataFormItem dataFormItem, UISwitch view)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
UIKit.UISwitch | view |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnUpdateValue(Syncfusion.iOS.DataForm.DataFormItem, UIKit.UISwitch)
OnValidateValue(UISwitch)
Validates the value of the specific editor to corresponding property in the business object.
Declaration
protected override bool OnValidateValue(UISwitch view)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UISwitch | view | the editor. |
Returns
Type |
---|
System.Boolean |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnValidateValue(UIKit.UISwitch)
OnWireEvents(UISwitch)
Wires events for DataFormItemView's editor view.
Declaration
protected override void OnWireEvents(UISwitch view)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UISwitch | view | The view to wire the events. |
Overrides
Syncfusion.iOS.DataForm.Editors.DataFormEditor<UIKit.UISwitch>.OnWireEvents(UIKit.UISwitch)
Implements
System.IDisposable