Class ImageToolbarItem

Represents an image toolbar button.

Inheritance
System.Object
ImageToolbarItem
Namespace: PSPDFKit.UI.ToolbarComponents
Assembly: PSPDFKit.dll
Syntax
public sealed class ImageToolbarItem : IToolbarItemButton, IToolbarItem

Properties

Attributes

Common attributes across all toolbar items. See Attributes.

Declaration
public Attributes Attributes { get; set; }
Property Value
Type Description
Attributes

Disabled

Whether the item is disabled or not.

Declaration
public bool? Disabled { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Icon

Icon for the item. The icon should be an URI in your assets. (Example : "ms-appx-web:///Assets/ToolbarIcons/status_completed.svg")

Declaration
public Uri Icon { get; set; }
Property Value
Type Description
System.Uri

Selected

Whether a custom item is selected or not.

Declaration
public bool? Selected { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>

Methods

Equals(Object)

Tests for equality

Declaration
public override bool Equals(object o)
Parameters
Type Name Description
System.Object o

Object to compare.

Returns
Type Description
System.Boolean

True if equal.

Overrides
System.Object.Equals(System.Object)

GetHashCode()

Object's hash code.

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32

The hash code.

Overrides
System.Object.GetHashCode()

ItemPressEvent()

Called when the item has been pressed.

Declaration
public void ItemPressEvent()

Events

OnItemPressEvent

The event handler invoked when the item is pressed. Id must be set in order to receive the event. Note that only ICustomToolbarItem toolbar items can have an event. Built in toolbar items will not fire this event.

Declaration
public event TypedEventHandler<IToolbarItem, string> OnItemPressEvent
Event Type
Type Description
Windows.Foundation.TypedEventHandler<IToolbarItem, System.String>

Implements

IToolbarItemButton
IToolbarItem