Class DataFormLayoutManager
Represent a class to creates DataFormItemView and DataFormGroupItemView its sub views for SfDataForm.
Inheritance
Implements
Namespace: Syncfusion.iOS.DataForm
Assembly: Syncfusion.SfDataForm.iOS.dll
Syntax
public class DataFormLayoutManager : Object, IDisposable
Constructors
DataFormLayoutManager(SfDataForm)
Initializes a new instance of the DataFormLayoutManager class.
Declaration
public DataFormLayoutManager(SfDataForm dataForm)
Parameters
Type | Name | Description |
---|---|---|
SfDataForm | dataForm |
Properties
DataForm
Gets the instance of SfDataForm
Declaration
public SfDataForm DataForm { get; }
Property Value
Type |
---|
SfDataForm |
Methods
CreateDataFormGroupItemView(Int32, Int32)
Creates DataFormGroupItemView and populates its sub view for specified index.
Declaration
protected virtual UIView CreateDataFormGroupItemView(int rowIndex, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The rowIndex to create the DataFormGroupItemView. |
System.Int32 | columnIndex | The columnIndex to create the DataFormGroupItemView. |
Returns
Type | Description |
---|---|
UIKit.UIView | Returns DataFormGroupItenView. |
CreateDataFormItemView(Int32, Int32)
Creates the DataFormItemView and populates its sub view for specified index.
Declaration
protected virtual DataFormItemView CreateDataFormItemView(int rowIndex, int columnIndex)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The rowIndex to create the DataFormItemView |
System.Int32 | columnIndex | The columnIndex to create the DataFormItemView. |
Returns
Type | Description |
---|---|
DataFormItemView | Returns the created DataFormItemView |
Dispose()
Disposes all the resources used by the DataFormLayoutManager class.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DataFormLayoutManager class.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Indicates whether the call is from Dispose method or from a finalizer. |
GenerateViewForGroupHeader(DataFormGroupItem)
Generates label to show the GroupHeader.
Declaration
protected virtual UIView GenerateViewForGroupHeader(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | The DataFormGroupItem to get the group information. |
Returns
Type | Description |
---|---|
UIKit.UIView | Returns UILabel. |
GenerateViewForGroupIcon(DataFormGroupItem)
Generates image to show the expander icon in DataFormGroupItemView.
Declaration
protected virtual UIImageView GenerateViewForGroupIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem |
Returns
Type | Description |
---|---|
UIKit.UIImageView | Returns UIImageView. |
GenerateViewForLabel(DataFormItem)
Generates label to show the label text.
Declaration
protected virtual UIView GenerateViewForLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The DataFormItem to get label properties. |
Returns
Type | Description |
---|---|
UIKit.UIView | Returns UILabel. |
GenerateViewForValidation(DataFormItem)
Generates validation view to show the validation message.
Declaration
protected virtual UIView GenerateViewForValidation(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
UIKit.UIView | Returns UILabel. |
GetEditorWidth(DataFormItem, nfloat)
Gets editor width based on available width.
Declaration
protected virtual nfloat GetEditorWidth(DataFormItem dataFormItem, nfloat availableWidth)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
System.nfloat | availableWidth |
Returns
Type | Description |
---|---|
System.nfloat | Returns editor width. |
GetGroupCollapseIcon(DataFormGroupItem)
Gets group collapse icon for group.
Declaration
protected virtual UIImage GetGroupCollapseIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | The DataFormGroupItem. |
Returns
Type | Description |
---|---|
UIKit.UIImage | Returns CollapseIcon |
GetGroupExpanderIcon(DataFormGroupItem)
Gets group expander icon for group.
Declaration
protected virtual UIImage GetGroupExpanderIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | The DataFormGroupItem. |
Returns
Type | Description |
---|---|
UIKit.UIImage | Returns ExpanderIcon |
GetLabelWidth(DataFormItem, nfloat)
Gets label width based on available width.
Declaration
protected virtual nfloat GetLabelWidth(DataFormItem dataFormItem, nfloat availableWidth)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
System.nfloat | availableWidth |
Returns
Type | Description |
---|---|
System.nfloat | Returns label width. |
GetLeftPaddingForEditor(DataFormItem)
Gets left start offset for editor.
Declaration
protected virtual nfloat GetLeftPaddingForEditor(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
System.nfloat | Returns left padding for editor. |
GetLeftPaddingForGroupHeader(DataFormGroupItem)
Gets left start offset for group header.
Declaration
protected virtual nfloat GetLeftPaddingForGroupHeader(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem |
Returns
Type | Description |
---|---|
System.nfloat | Returns left padding for group header. |
GetLeftPaddingForGroupIcon(DataFormGroupItem)
Gets left start offset for group icon.
Declaration
protected virtual nfloat GetLeftPaddingForGroupIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem |
Returns
Type | Description |
---|---|
System.nfloat | Returns Left padding for group icon. |
GetLeftPaddingForLabel(DataFormItem)
Gets left start offset for label.
Declaration
protected virtual nfloat GetLeftPaddingForLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
System.nfloat | Returns left padding value for label. |
GetLeftPaddingForValidationLabel(DataFormItem)
Gets start offset for validation label.
Declaration
protected virtual nfloat GetLeftPaddingForValidationLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem |
Returns
Type | Description |
---|---|
System.nfloat | Returns left padding for validation label. |
GetRightPaddingForEditor(DataFormItem)
Gets right offset for the editor.
Declaration
protected virtual nfloat GetRightPaddingForEditor(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
System.nfloat | Returns left padding for editor. |
Remarks
Applicable for both
GetRightPaddingForGroupHeader(DataFormGroupItem)
Gets right offset for group header.
Declaration
protected virtual nfloat GetRightPaddingForGroupHeader(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | Data form group item. |
Returns
Type | Description |
---|---|
System.nfloat | Returns right padding for group header. |
Remarks
Applicable for both
GetRightPaddingForGroupIcon(DataFormGroupItem)
Gets right offset for group icon.
Declaration
protected virtual nfloat GetRightPaddingForGroupIcon(DataFormGroupItem dataFormGroupItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormGroupItem | dataFormGroupItem | Data form group item. |
Returns
Type | Description |
---|---|
System.nfloat | Returns right padding for group icon. |
Remarks
Applicable for both
GetRightPaddingForLabel(DataFormItem)
Gets right start offset for label.
Declaration
protected virtual nfloat GetRightPaddingForLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
System.nfloat | Returns right padding value for label. |
Remarks
Applicable only for
GetRightPaddingForValidationLabel(DataFormItem)
Gets right offset for validation label.
Declaration
protected virtual nfloat GetRightPaddingForValidationLabel(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
Returns
Type | Description |
---|---|
System.nfloat | Returns right padding for validation label. |
Remarks
Applicable only for
GetValidationLabelWidth(DataFormItem, nfloat)
Gets validation label width based on available width.
Declaration
protected virtual nfloat GetValidationLabelWidth(DataFormItem dataFormItem, nfloat availableWidth)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | |
System.nfloat | availableWidth |
Returns
Type | Description |
---|---|
System.nfloat | Returns validation label width. |
MoveToNextFocusableEditor(DataFormItem)
Move focus to next focusable editor. IsReadOnly editor, Non-Focusable item will not get focus.
Declaration
public virtual bool MoveToNextFocusableEditor(DataFormItem dataFormItem)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The current editing DataFormItem that leave from editing. |
Returns
Type | Description |
---|---|
System.Boolean | Return true to close the soft key board. False to remain key board and move to next editor. |
OnEditorCreated(DataFormItem, UIView)
Raises after editor has created.
Declaration
protected virtual void OnEditorCreated(DataFormItem dataFormItem, UIView editor)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | The DataFormItem. |
UIKit.UIView | editor | The Editor. |
UpdateViewForValidation(DataFormItem, CGRect)
Updates the view for validation.
Declaration
protected virtual UIView UpdateViewForValidation(DataFormItem dataFormItem, CGRect bounds)
Parameters
Type | Name | Description |
---|---|---|
DataFormItem | dataFormItem | Data form item. |
CoreGraphics.CGRect | bounds |
Returns
Type | Description |
---|---|
UIKit.UIView | The view for validation. |