Class TreeViewAdapter
Represents a class to create a view for TreeViewItem.
Inheritance
Namespace: Syncfusion.iOS.TreeView
Assembly: Syncfusion.SfTreeView.iOS.dll
Syntax
public class TreeViewAdapter : NSObject
Constructors
TreeViewAdapter()
Initializes a new instance of the TreeViewAdapter class.
Declaration
public TreeViewAdapter()
Properties
ItemCount
Gets the items count of the TreeViewAdapter.
Declaration
public virtual int ItemCount { get; }
Property Value
Type |
---|
System.Int32 |
TreeView
Gets the SfTreeView.
Declaration
public SfTreeView TreeView { get; }
Property Value
Type |
---|
SfTreeView |
Methods
CreateContentView(TreeViewItemInfoBase)
Gets the Content View in the TreeViewItem.
Declaration
protected virtual UIView CreateContentView(TreeViewItemInfoBase itemInfo)
Parameters
Type | Name | Description |
---|---|---|
TreeViewItemInfoBase | itemInfo | Represents the TreeViewItemInfoBase. |
Returns
Type | Description |
---|---|
UIKit.UIView | Returns the content view. |
Remarks
By default, a label is loaded in the content view.
CreateExpanderView(TreeViewItemInfoBase)
Gets the Expander View in the TreeViewItem.
Declaration
protected virtual UIView CreateExpanderView(TreeViewItemInfoBase itemInfo)
Parameters
Type | Name | Description |
---|---|---|
TreeViewItemInfoBase | itemInfo | Represents the TreeViewItemInfoBase. |
Returns
Type | Description |
---|---|
UIKit.UIView | Returns the expander view. |
Remarks
By default, the expandable icon is loaded in the expander view.
CreateView(TreeViewItem, Int32)
Creates a new UIKit.UICollectionViewCell to represent the TreeViewItem.
Declaration
public virtual UICollectionViewCell CreateView(TreeViewItem treeViewItem, int viewType)
Parameters
Type | Name | Description |
---|---|---|
TreeViewItem | treeViewItem | Represents the TreeViewItem. |
System.Int32 | viewType | Represents the view type of the item. |
Returns
Type | Description |
---|---|
UIKit.UICollectionViewCell | Returns the UIKit.UICollectionViewCell. |
Dispose(Boolean)
Dispose all the allocated resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | disposing | Represents the boolean value to dispose the resources. |
GetAutoHeight(UIView, TreeViewItemInfoBase, Double)
Override method that enables the user to set a desired row height value for ContentView.
Declaration
public virtual double GetAutoHeight(UIView contentView, TreeViewItemInfoBase itemInfo, double contentWidth)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIView | contentView | |
TreeViewItemInfoBase | itemInfo | Represents the TreeViewItemInfoBase. |
System.Double | contentWidth |
Returns
Type | Description |
---|---|
System.Double | Returns the value used to specify the desired item height for the content view. |
GetItemViewType(Int32)
Get the type of View that will be created by UIKit.UIView, for the specified item.
Declaration
public virtual int GetItemViewType(int position)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | position | Represents the position. |
Returns
Type | Description |
---|---|
System.Int32 | Returns 0 always. |
UpdateContentView(UIView, TreeViewItemInfoBase)
Updates the data associated to the Content View based on the specified TreeViewNode.
Declaration
protected virtual void UpdateContentView(UIView view, TreeViewItemInfoBase itemInfo)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIView | view | Represents the content view. |
TreeViewItemInfoBase | itemInfo | Represents the TreeViewItemInfoBase. |
UpdateExpanderView(UIView, TreeViewItemInfoBase)
Updates the data associated to the Expanded View based on the specified TreeViewNode.
Declaration
protected virtual void UpdateExpanderView(UIView view, TreeViewItemInfoBase itemInfo)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UIView | view | Represents the expander view. |
TreeViewItemInfoBase | itemInfo | Represents the TreeViewItemInfoBase. |
UpdateView(UICollectionViewCell, Int32)
Updates the UIKit.UICollectionViewCell contents with the item at the given position .
Declaration
public virtual void UpdateView(UICollectionViewCell itemView, int position)
Parameters
Type | Name | Description |
---|---|---|
UIKit.UICollectionViewCell | itemView | It represents the UIKit.UICollectionViewCell of the item. |
System.Int32 | position | It represents the position of the holder. |