ToolbarItemCollection Class
Represents the collection of items in a toolbar.
Inheritance
System.Object
ToolbarItemCollection
Namespace: Syncfusion.Maui.PdfViewer
Assembly: Syncfusion.Maui.PdfViewer.dll
Syntax
public class ToolbarItemCollection : Object
Properties
Count
Gets the number of items in a toolbar.
Declaration
public int Count { get; }
Property Value
| Type |
|---|
| System.Int32 |
Item[Int32]
Get the toolbar item at the specified index in the toolbar.
Declaration
public ToolbarItem this[int index] { get; set; }
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index |
Property Value
| Type |
|---|
| ToolbarItem |
Methods
Add(ToolbarItem)
Adds an item to the toolbar.
Declaration
public void Add(ToolbarItem toolbarItem)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolbarItem | toolbarItem | The item to be added in the toolbar. |
GetByName(String)
Gets the toolbar item that has the specified name from the collection
Declaration
public ToolbarItem GetByName(string name)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The name of the toolbar item. |
Returns
| Type |
|---|
| ToolbarItem |
Insert(Int32, ToolbarItem)
Adds an item in the toolbar at the specific index in the collection.
Declaration
public void Insert(int index, ToolbarItem toolbarItem)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | index | The index of the item. |
| ToolbarItem | toolbarItem | The item to be added in the toolbar. |
Remove(ToolbarItem)
Removes the specified toolbar item.
Declaration
public void Remove(ToolbarItem toolbarItem)
Parameters
| Type | Name | Description |
|---|---|---|
| ToolbarItem | toolbarItem | The item to be removed from the toolbar. |