Class TreeSelection
- Namespace
- Gtk
- Assembly
- Gtk-4.0.dll
public class TreeSelection : Object, IDisposable, NativeObject, GTypeProvider, InstanceFactory
- Inheritance
-
TreeSelection
- Implements
- Inherited Members
Constructors
TreeSelection(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 TreeSelection(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
TreeSelection(CreationData)
[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected TreeSelection(CreationData data)
Parameters
dataCreationData
TreeSelection(TreeSelectionHandle)
protected TreeSelection(TreeSelectionHandle handle)
Parameters
handleTreeSelectionHandle
Fields
ChangedSignal
Signal Descriptor for OnChanged.
public static readonly Signal<TreeSelection> ChangedSignal
Field Value
ModePropertyDefinition
public static readonly Property<SelectionMode, TreeSelection> ModePropertyDefinition
Field Value
Properties
Mode
public SelectionMode Mode { get; set; }
Property Value
Methods
CountSelectedRows()
public int CountSelectedRows()
Returns
GetGType()
public static Type GetGType()
Returns
GetMode()
public SelectionMode GetMode()
Returns
GetTreeView()
public TreeView GetTreeView()
Returns
GetUserData()
public nint GetUserData()
Returns
IterIsSelected(TreeIter)
public bool IterIsSelected(TreeIter iter)
Parameters
iterTreeIter
Returns
NewFromPointer(nint, bool)
Creates a new managed TreeSelection instance for a given pointer.
public static TreeSelection NewFromPointer(nint ptr, bool ownsHandle)
Parameters
Returns
NewWithProperties(ConstructArgument[])
Creates a new TreeSelection and sets the properties specified by the construct arguments.
public static TreeSelection NewWithProperties(ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]The properties to set.
Returns
PathIsSelected(TreePath)
public bool PathIsSelected(TreePath path)
Parameters
pathTreePath
Returns
SelectAll()
public void SelectAll()
SelectIter(TreeIter)
public void SelectIter(TreeIter iter)
Parameters
iterTreeIter
SelectPath(TreePath)
public void SelectPath(TreePath path)
Parameters
pathTreePath
SelectRange(TreePath, TreePath)
public void SelectRange(TreePath startPath, TreePath endPath)
Parameters
SelectedForeach(TreeSelectionForeachFunc)
public void SelectedForeach(TreeSelectionForeachFunc func)
Parameters
SetMode(SelectionMode)
public void SetMode(SelectionMode type)
Parameters
typeSelectionMode
SetSelectFunction(TreeSelectionFunc?)
public void SetSelectFunction(TreeSelectionFunc? func)
Parameters
funcTreeSelectionFunc
UnselectAll()
public void UnselectAll()
UnselectIter(TreeIter)
public void UnselectIter(TreeIter iter)
Parameters
iterTreeIter
UnselectPath(TreePath)
public void UnselectPath(TreePath path)
Parameters
pathTreePath
UnselectRange(TreePath, TreePath)
public void UnselectRange(TreePath startPath, TreePath endPath)
Parameters
Events
OnChanged
public event SignalHandler<TreeSelection> OnChanged