TreeView.

UpdateSelectionFromContainer(IControl, bool, bool, bool, bool) Method

Summary

Updates the selection for an item based on user interaction.
Namespace
Avalonia.Controls
Containing Type
TreeView

Syntax

protected void UpdateSelectionFromContainer(IControl container, bool select = true, bool rangeModifier = false, bool toggleModifier = false, bool rightButton = false)

Parameters

Name Type Description
container IControl The container.
select bool Whether the item should be selected or unselected.
rangeModifier bool Whether the range modifier is enabled (i.e. shift key).
toggleModifier bool Whether the toggle modifier is enabled (i.e. ctrl key).
rightButton bool Whether the event is a right-click.

Return Value

Type Description
void