menu

Xamarin.Android

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class TreeNodeView - Xamarin.Android API Reference | Syncfusion

    Show / Hide Table of Contents

    Class TreeNodeView

    A customized ViewGroup used to add, measure and layout both the expander view and content view for SfTreeView.

    Inheritance
    System.Object
    ContentView
    TreeNodeView
    Implements
    Android.Views.GestureDetector.IOnGestureListener
    Android.Runtime.IJavaObject
    System.IDisposable
    Java.Interop.IJavaPeerable
    Inherited Members
    ContentView.OnDown(MotionEvent)
    ContentView.OnFling(MotionEvent, MotionEvent, Single, Single)
    ContentView.OnLongPress(MotionEvent)
    ContentView.OnMeasure(Int32, Int32)
    ContentView.OnScroll(MotionEvent, MotionEvent, Single, Single)
    ContentView.OnShowPress(MotionEvent)
    ContentView.OnSingleTapUp(MotionEvent)
    ContentView.OnTouchEvent(MotionEvent)
    Namespace: Syncfusion.Android.TreeView
    Assembly: Syncfusion.SfTreeView.Android.dll
    Syntax
    public class TreeNodeView : ContentView, GestureDetector.IOnGestureListener, IJavaObject, IDisposable, IJavaPeerable

    Constructors

    TreeNodeView(Context)

    Initializes a new instance of the TreeNodeView class.

    Declaration
    public TreeNodeView(Context context)
    Parameters
    Type Name Description
    Android.Content.Context context

    Represent the Android.Content.Context of Android.Views.ViewGroup.

    Properties

    ContentView

    Gets or sets the content view for TreeViewItem.

    Declaration
    public virtual ContentView ContentView { get; set; }
    Property Value
    Type
    ContentView

    ExpanderView

    Gets or sets the expander view for TreeViewItem.

    Declaration
    public virtual View ExpanderView { get; set; }
    Property Value
    Type
    Android.Views.View

    Methods

    Dispose(Boolean)

    Dispose the instances, if parameter is true.

    Declaration
    protected override void Dispose(bool disposing)
    Parameters
    Type Name Description
    System.Boolean disposing

    Represents the boolean value for disposing objects.

    Overrides
    ContentView.Dispose(Boolean)

    OnLayout(Boolean, Int32, Int32, Int32, Int32)

    Positions and sizes the children of the TreeNodeView.

    Declaration
    protected override void OnLayout(bool changed, int left, int top, int right, int bottom)
    Parameters
    Type Name Description
    System.Boolean changed

    Indicates whether the layout has changed or not.

    System.Int32 left

    The current extreme left position of the TreeNodeView.

    System.Int32 top

    The current top position of the TreeNodeView.

    System.Int32 right

    The current right extreme position of the TreeNodeView.

    System.Int32 bottom

    The current bottom position of the TreeNodeView.

    Overrides
    ContentView.OnLayout(Boolean, Int32, Int32, Int32, Int32)

    OnSizeChanged(Int32, Int32, Int32, Int32)

    Raises when the TreeNodeView's content size is changed.

    Declaration
    protected override void OnSizeChanged(int width, int height, int oldwidth, int oldheight)
    Parameters
    Type Name Description
    System.Int32 width

    Represents the width of the TreeNodeView.

    System.Int32 height

    Represents the height of the TreeNodeView.

    System.Int32 oldwidth

    Represents the previous width of the TreeNodeView.

    System.Int32 oldheight

    Represents the previous height of the TreeNodeView.

    Implements

    Android.Views.GestureDetector.IOnGestureListener
    Android.Runtime.IJavaObject
    System.IDisposable
    Java.Interop.IJavaPeerable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved