Class TreeNodeView
A customized ViewGroup used to add, measure and layout both the expander view and content view for SfTreeView.
Implements
Inherited Members
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
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
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. |