Xamarin.iOS

Upgrade Guide User Guide Demos Support Forums Download
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeViewAdapter - Xamarin.iOS API Reference | Syncfusion TreeViewItem. ">

    Show / Hide Table of Contents

    Class TreeViewAdapter

    Represents a class to create a view for TreeViewItem.

    Inheritance
    System.Object
    TreeViewAdapter
    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 Description
    System.Int32

    TreeView

    Gets the SfTreeView.

    Declaration
    public SfTreeView TreeView { get; }
    Property Value
    Type Description
    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.

    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.

    Back to top Generated by DocFX
    Copyright © 2001 - 2021 Syncfusion Inc. All Rights Reserved