Class MainToolbarItems.CustomMainToolbarToggleButton

Custom toggle button on main toolbar.

Inheritance
MainToolbarItems.CustomMainToolbarToggleButton
Namespace: PSPDFKit.Sdk.Models.Toolbar
Assembly: Sdk.dll
Syntax
public sealed class MainToolbarItems.CustomMainToolbarToggleButton : MainToolbarToggleButtonBase, ICustomMainToolbarToggleButton, ICustomMainToolbarButton, ICustomMainToolbarItem, IMainToolbarToggleButton, IMainToolbarButton, IMainToolbarItem, INotifyPropertyChanged

Constructors

| Edit this page View Source

CustomMainToolbarToggleButton(string)

Initalizes a new instance of MainToolbarItems.CustomMainToolbarToggleButton class.

Declaration
public CustomMainToolbarToggleButton(string id)
Parameters
Type Name Description
string id

Unique identifier for the custom toggle button.

Properties

| Edit this page View Source

Id

Gets or sets the unique identifier for the item.

Declaration
[JsonProperty("id")]
public string Id { get; init; }
Property Value
Type Description
string
| Edit this page View Source

ResponsiveGroup

Gets or sets the toolbar type to which the button belongs. It can be used to link multiple toolbar items to the same toolbar type. Those items will be hidden when the responsive group icon is displayed and can be seen when we click (i.e. open) the group. Whenever a toolbar item is active and its responsive group is shown, the responsive group is open so the active state can be seen.

Declaration
[JsonProperty("responsiveGroup", NullValueHandling = NullValueHandling.Ignore)]
public string ResponsiveGroup { get; set; }
Property Value
Type Description
string

Events

| Edit this page View Source

Clicked

Occurs when the button with Id is clicked/tapped.

Declaration
public event EventHandler Clicked
Event Type
Type Description
EventHandler

Implements

ICustomMainToolbarToggleButton
ICustomMainToolbarButton
ICustomMainToolbarItem
IMainToolbarToggleButton
IMainToolbarButton
IMainToolbarItem
INotifyPropertyChanged