Class TreeExpander
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class TreeExpander : Widget, Accessible, Buildable, ConstraintTarget, NativeObject, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
TreeExpander
- Implements
- Inherited Members
Constructors
TreeExpander(params ConstructArgument[])
[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public TreeExpander(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
TreeExpander(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TreeExpander(CreationData data)
Parameters
dataCreationData
TreeExpander(TreeExpanderHandle)
protected TreeExpander(TreeExpanderHandle handle)
Parameters
handleTreeExpanderHandle
Fields
ChildPropertyDefinition
public static readonly Property<Widget?, TreeExpander> ChildPropertyDefinition
Field Value
HideExpanderPropertyDefinition
public static readonly Property<bool, TreeExpander> HideExpanderPropertyDefinition
Field Value
IndentForDepthPropertyDefinition
public static readonly Property<bool, TreeExpander> IndentForDepthPropertyDefinition
Field Value
IndentForIconPropertyDefinition
public static readonly Property<bool, TreeExpander> IndentForIconPropertyDefinition
Field Value
ItemPropertyDefinition
public static readonly Property<Object?, TreeExpander> ItemPropertyDefinition
Field Value
ListRowPropertyDefinition
public static readonly Property<TreeListRow?, TreeExpander> ListRowPropertyDefinition
Field Value
Properties
AccessibleRole
public AccessibleRole AccessibleRole { get; set; }
Property Value
Child
public Widget? Child { get; set; }
Property Value
HideExpander
public bool HideExpander { get; set; }
Property Value
IndentForDepth
public bool IndentForDepth { get; set; }
Property Value
IndentForIcon
public bool IndentForIcon { get; set; }
Property Value
Item
public Object? Item { get; }
Property Value
ListRow
public TreeListRow? ListRow { get; set; }
Property Value
Methods
Announce(string, AccessibleAnnouncementPriority)
[Version("4.14")]
public void Announce(string message, AccessibleAnnouncementPriority priority)
Parameters
messagestringpriorityAccessibleAnnouncementPriority
GetAccessibleParent()
[Version("4.10")]
public Accessible? GetAccessibleParent()
Returns
GetAccessibleRole()
public AccessibleRole GetAccessibleRole()
Returns
GetAtContext()
[Version("4.10")]
public ATContext GetAtContext()
Returns
GetBounds(out int, out int, out int, out int)
[Version("4.10")]
public bool GetBounds(out int x, out int y, out int width, out int height)
Parameters
Returns
GetBuildableId()
public string? GetBuildableId()
Returns
GetChild()
public Widget? GetChild()
Returns
GetFirstAccessibleChild()
[Version("4.10")]
public Accessible? GetFirstAccessibleChild()
Returns
GetGType()
public static Type GetGType()
Returns
GetHideExpander()
[Version("4.10")]
public bool GetHideExpander()
Returns
GetIndentForDepth()
[Version("4.10")]
public bool GetIndentForDepth()
Returns
GetIndentForIcon()
[Version("4.6")]
public bool GetIndentForIcon()
Returns
GetItem()
public Object? GetItem()
Returns
GetListRow()
public TreeListRow? GetListRow()
Returns
GetNextAccessibleSibling()
[Version("4.10")]
public Accessible? GetNextAccessibleSibling()
Returns
GetPlatformState(AccessiblePlatformState)
[Version("4.10")]
public bool GetPlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState
Returns
New()
public static TreeExpander New()
Returns
NewFromPointer(nint, bool)
Creates a new managed TreeExpander instance for a given pointer.
public static TreeExpander NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new TreeExpander and sets the properties specified by the construct arguments.
public static TreeExpander NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
ResetProperty(AccessibleProperty)
public void ResetProperty(AccessibleProperty property)
Parameters
propertyAccessibleProperty
ResetRelation(AccessibleRelation)
public void ResetRelation(AccessibleRelation relation)
Parameters
relationAccessibleRelation
ResetState(AccessibleState)
public void ResetState(AccessibleState state)
Parameters
stateAccessibleState
SetAccessibleParent(Accessible?, Accessible?)
[Version("4.10")]
public void SetAccessibleParent(Accessible? parent, Accessible? nextSibling)
Parameters
parentAccessiblenextSiblingAccessible
SetChild(Widget?)
public void SetChild(Widget? child)
Parameters
childWidget
SetHideExpander(bool)
[Version("4.10")]
public void SetHideExpander(bool hideExpander)
Parameters
hideExpanderbool
SetIndentForDepth(bool)
[Version("4.10")]
public void SetIndentForDepth(bool indentForDepth)
Parameters
indentForDepthbool
SetIndentForIcon(bool)
[Version("4.6")]
public void SetIndentForIcon(bool indentForIcon)
Parameters
indentForIconbool
SetListRow(TreeListRow?)
public void SetListRow(TreeListRow? listRow)
Parameters
listRowTreeListRow
UpdateNextAccessibleSibling(Accessible?)
[Version("4.10")]
public void UpdateNextAccessibleSibling(Accessible? newSibling)
Parameters
newSiblingAccessible
UpdatePlatformState(AccessiblePlatformState)
[Version("4.18")]
public void UpdatePlatformState(AccessiblePlatformState state)
Parameters
stateAccessiblePlatformState