Class AnnotationToolbarItemBase

Base class for all built-in annotation toolbar items.

Inheritance
AnnotationToolbarItemBase
Namespace: PSPDFKit.Sdk.Models.Toolbar.Base
Assembly: Sdk.dll
Syntax
public abstract class AnnotationToolbarItemBase : BindableBase, IAnnotationToolbarItem, INotifyPropertyChanged
Remarks

To add a custom annotation toolbar item, create a class that inherits ICustomAnnotationToolbarItem interface.

Properties

| Edit this page View Source

Icon

Gets or sets path of the icon for the toolbar item. Icon should be an SVG image stored as raw asset in the app, i.e. it should be present in the Resources/Raw/Assets folder in the project.

Declaration
[JsonProperty("icon", NullValueHandling = NullValueHandling.Ignore)]
public string Icon { get; set; }
Property Value
Type Description
string
| Edit this page View Source

IsDisabled

Gets or sets if the item is disabled.

Declaration
[JsonProperty("disabled", NullValueHandling = NullValueHandling.Ignore)]
public bool? IsDisabled { get; set; }
Property Value
Type Description
bool?
| Edit this page View Source

StyleClass

Gets or sets the custom style class name use for the toolbar item.

Declaration
[JsonProperty("class", NullValueHandling = NullValueHandling.Ignore)]
public string StyleClass { get; set; }
Property Value
Type Description
string
| Edit this page View Source

Tooltip

Gets or sets the tool tip for the item.

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

Methods

| Edit this page View Source

ToJson()

Declaration
public string ToJson()
Returns
Type Description
string

Implements

IAnnotationToolbarItem
INotifyPropertyChanged