Class ButtonToolbarItem

Represents a button toolbar item.

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

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

Methods

Equals(Object)

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

GetHashCode()

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

ItemPressEvent()

Called from web 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 recieve the event.

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

Explicit Interface Implementations

ICustomToolbarItem.IdSuffix

Declaration
string ICustomToolbarItem.IdSuffix { get; }
Returns
Type Description
System.String

Implements

IToolbarItemButton
IToolbarItem
ICustomToolbarItem