This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/maui/user-interface/main-toolbar/rearrange.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Rearrange tools in MAUI PDF viewer toolbar | Nutrient

Nutrient MAUI SDK comes with a customizable main toolbar that, by default, includes a number of predefined items. You can rearrange toolbar items using our API.

Nutrient is initialized with a default set of items that can be retrieved via MainToolbar.DefaultToolbarItems:

foreach(var item in MainToolbar.DefaultToolbarItems)
{
Debug.WriteLine(item.Name);
}

To rearrange any item, get the current collection of toolbar items via MainToolbar.ToolbarItems, and change the order a toolbar item is displayed in the collection:

// Move the first item to the last position.
PSPDFKitController.MainToolbar.ToolbarItems.Move(0, PSPDFKitController.MainToolbar.ToolbarItems.Count - 1);