Class ToggleButtonToolbarItem

Represents a toggle button toolbar item.

Inheritance
System.Object
ToggleButtonToolbarItem
Implements
Namespace: PSPDFKit.UI.ToolbarComponents
Assembly: PSPDFKit.dll
Syntax
public sealed class ToggleButtonToolbarItem : object, IToolbarItemToggleButton, 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
Windows.Foundation.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)

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

GetHashCode()

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

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

IToolbarItemToggleButton
IToolbarItemButton
IToolbarItem
ICustomToolbarItem