Skip to content

Commit 3605a0d

Browse files
Alignment corected
1 parent dc2088f commit 3605a0d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

MAUI/PDF-Viewer/Toolbar.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -915,13 +915,13 @@ To remove an item from all toolbars, iterate through the toolbar collection and
915915
// Iterate through the toolbar collection of the PDF Viewer
916916
for (int i = 0; i < pdfViewer?.Toolbars.Count; i++)
917917
{
918-
// Get the toolbar item with the name "Sticky note" from the current toolbar
919-
var item = pdfViewer.Toolbars[i]?.Items?.GetByName("Sticky note");
920-
if (item != null)
921-
{
922-
// Remove the "Sticky note" item
923-
pdfViewer.Toolbars[i].Items.Remove(item);
924-
}
918+
// Get the toolbar item with the name "Sticky note" from the current toolbar
919+
var item = pdfViewer.Toolbars[i]?.Items?.GetByName("Sticky note");
920+
if (item != null)
921+
{
922+
// Remove the "Sticky note" item
923+
pdfViewer.Toolbars[i].Items.Remove(item);
924+
}
925925
}
926926
{% endhighlight %}
927927
{% endtabs %}
@@ -969,7 +969,7 @@ item.IsVisible = false; // Hide the search item
969969

970970
#### Hide item in all toolbars
971971

972-
In [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html),each toolbar operates independently. Hiding an item in one toolbar does not affect others. For example, changing the visibility of the signature icon in the "AnnotationsToolbar" does not impact other toolbars.
972+
In [SfPdfViewer](https://help.syncfusion.com/cr/maui/Syncfusion.Maui.PdfViewer.SfPdfViewer.html), each toolbar operates independently. Hiding an item in one toolbar does not affect others. For example, changing the visibility of the signature icon in the "AnnotationsToolbar" does not impact other toolbars.
973973

974974
To hide an icon from all toolbars, iterate through the toolbar collection and adjust the visibility of the item in each toolbar. Here’s how to hide the "Signature" icon from all toolbars:
975975

0 commit comments

Comments
 (0)