Class DataFormItemBase
Represents the base class that encapsulates the layout, group and editor setting for a data fields appearing in SfDataForm.
Implements
Namespace: Syncfusion.XForms.DataForm
Assembly: Syncfusion.SfDataForm.XForms.dll
Syntax
public abstract class DataFormItemBase : BindableObject, IDisposable
Constructors
DataFormItemBase()
Declaration
protected DataFormItemBase()
Properties
ColumnSpan
Gets or sets a value that decides the width of the item.
Declaration
public int ColumnSpan { get; set; }
Property Value
Type |
---|
System.Int32 |
IsGroup
Gets a value indicating whether the DataFormItemBase is group (DataFormGroupItem) or not.
Declaration
public bool IsGroup { get; }
Property Value
Type |
---|
System.Boolean |
IsVisible
Gets or sets a value indicating whether to show the data field for editing in SfDataForm.
Declaration
public bool IsVisible { get; set; }
Property Value
Type |
---|
System.Boolean |
ItemManager
Gets the DataFormItemManager which creates DataFormItem's for for the date fileds appearing in SfDataForm.
Declaration
public DataFormItemManager ItemManager { get; }
Property Value
Type |
---|
DataFormItemManager |
LabelFontSize
Gets or sets the size of the label text.
Declaration
public double LabelFontSize { get; set; }
Property Value
Type | Description |
---|---|
System.Double | The size of the label text. |
RowSpan
Gets or sets a value that decides the height of the item.
Declaration
public int RowSpan { get; set; }
Property Value
Type |
---|
System.Int32 |
TextInputLayout
Gets the TextInputLayout of DataformItem if TextInputLayout.
Declaration
public DataFormItemTextInputLayout TextInputLayout { get; }
Property Value
Type |
---|
DataFormItemTextInputLayout |
Remarks
Applicable only for the DataformItem which Default.
View
Gets or sets the value that indicates the rendering item in view.
Declaration
public DataFormItemViewBase View { get; set; }
Property Value
Type |
---|
DataFormItemViewBase |
Methods
CanFocus()
Returns a value that indicates whether the editor loaded for data field allows focus when navigating by keyboard Go action.
Declaration
protected virtual bool CanFocus()
Returns
Type | Description |
---|---|
System.Boolean | Return |
Dispose()
Disposes all the resources used by the DataFormItemBase.
Declaration
public void Dispose()
Dispose(Boolean)
Disposes all the resources used by the DataFormItemBase.
Declaration
protected virtual void Dispose(bool isDisposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | isDisposing | Indicates whether the call is from Dispose method or from a finalizer. |
OnPropertyChanged(String)
Occurs when property of DataFormItem is changed.
Declaration
protected override void OnPropertyChanged(string propertyName = null)
Parameters
Type | Name | Description |
---|---|---|
System.String | propertyName | The property name. |