Class Factory

Factory for creating IToolbarItems.

Inheritance
System.Object
Factory
Namespace: PSPDFKit.UI.ToolbarComponents
Assembly: PSPDFKit.dll
Syntax
public sealed class Factory : object

Methods

FromJsonArray(JsonArray)

Retrieves a list of the corresponding IToolbarItem for the given json array.

Declaration
public static IEnumerable<IToolbarItem> FromJsonArray(JsonArray toolbarItemsJson)
Parameters
Type Name Description
Windows.Data.Json.JsonArray toolbarItemsJson

Correctly formed json array of toolbar items.

Returns
Type Description
IEnumerable<IToolbarItem>

A List of toolbar items

ToJsonArray(IEnumerable<IToolbarItem>)

Returns a Json Array describing the toolbar items passed in.

Declaration
public static JsonArray ToJsonArray(IEnumerable<IToolbarItem> toolbarItems)
Parameters
Type Name Description
IEnumerable<IToolbarItem> toolbarItems

The items in which to parse

Returns
Type Description
Windows.Data.Json.JsonArray

Json Array of toolbar items