Class AnnotationToolbarItemBase
Base class for all built-in annotation toolbar items.
Inheritance
AnnotationToolbarItemBase
Inherited Members
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 SourceIcon
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 |
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? |
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 |
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 SourceToJson()
Declaration
public string ToJson()
Returns
Type | Description |
---|---|
string |