Class AnnotationAttributes

Represents the attributes of a IAnnotationToolbarItem.

Inheritance
System.Object
AnnotationAttributes
Namespace: PSPDFKit.UI.AnnotationToolbarComponents
Assembly: PSPDFKit.dll
Syntax
public sealed class AnnotationAttributes

Properties

ClassName

Useful to set a custom CSS class name on the item.

Declaration
public string ClassName { get; set; }
Property Value
Type Description
System.String

Id

Unique identifier for the item.

Declaration
public string Id { get; set; }
Property Value
Type Description
System.String

MediaQueries

An array of valid media queries which are used to determine the visibility of an item. Internally media queries are managed using the Window.matchMedia() API.
As per the W3C Spec in many cases media queries require parenthesis for example min-width: 480px won't work whereas (min-width: 480px) will.

Declaration
public IList<string> MediaQueries { get; set; }
Property Value
Type Description
System.Collections.Generic.IList<System.String>

Title

Title for the toolbar item. It is shown on hover or when the item doesn't have an icon.

Declaration
public string Title { get; set; }
Property Value
Type Description
System.String