Show / Hide Table of Contents

Class TreeViewItem

Inheritance
Object
TreeViewItem
Implements
IComparable<TreeViewItem>
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: UnityEditor.IMGUI.Controls
Assembly: UnityEditor.dll
Syntax
public class TreeViewItem : IComparable<TreeViewItem>

Constructors

| Improve this Doc View Source

TreeViewItem()

Declaration
public TreeViewItem()
| Improve this Doc View Source

TreeViewItem(Int32)

Declaration
public TreeViewItem(int id)
Parameters
Type Name Description
Int32 id
| Improve this Doc View Source

TreeViewItem(Int32, Int32)

Declaration
public TreeViewItem(int id, int depth)
Parameters
Type Name Description
Int32 id
Int32 depth
| Improve this Doc View Source

TreeViewItem(Int32, Int32, String)

Declaration
public TreeViewItem(int id, int depth, string displayName)
Parameters
Type Name Description
Int32 id
Int32 depth
String displayName

Properties

| Improve this Doc View Source

children

Declaration
public virtual List<TreeViewItem> children { get; set; }
Property Value
Type Description
List<TreeViewItem>
| Improve this Doc View Source

depth

Declaration
public virtual int depth { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

displayName

Declaration
public virtual string displayName { get; set; }
Property Value
Type Description
String
| Improve this Doc View Source

hasChildren

Declaration
public virtual bool hasChildren { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

icon

Declaration
public virtual Texture2D icon { get; set; }
Property Value
Type Description
Texture2D
| Improve this Doc View Source

id

Declaration
public virtual int id { get; set; }
Property Value
Type Description
Int32
| Improve this Doc View Source

parent

Declaration
public virtual TreeViewItem parent { get; set; }
Property Value
Type Description
TreeViewItem

Methods

| Improve this Doc View Source

AddChild(TreeViewItem)

Declaration
public void AddChild(TreeViewItem child)
Parameters
Type Name Description
TreeViewItem child
| Improve this Doc View Source

CompareTo(TreeViewItem)

Declaration
public virtual int CompareTo(TreeViewItem other)
Parameters
Type Name Description
TreeViewItem other
Returns
Type Description
Int32
| Improve this Doc View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
String
Overrides
Object.ToString()

Implements

System.IComparable<T>

Extension Methods

MustExtensions.MustBeEqual<T>(T, T)
MustExtensions.MustBeEqual<T>(T, T, String)
MustExtensions.MustNotBeEqual<T>(T, T)
MustExtensions.MustNotBeEqual<T>(T, T, String)
MustExtensions.MustBeNull<T>(T)
MustExtensions.MustBeNull<T>(T, String)
MustExtensions.MustNotBeNull<T>(T)
MustExtensions.MustNotBeNull<T>(T, String)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX