Activities
latest
false
Banner background image
Document Understanding Activities
Last updated Apr 10, 2024

PrettyBoxConverter Class

Namespace: UiPath.DocumentProcessing.Contracts
Assembly: UiPath.DocumentProcessing.Contracts

Description

A public class that controls the JSON serialization and deserialization of Box objects, by overriding the WriteJson, ReadJson and CanConvert methods of the Newtonsoft.Json.JsonConverter class.

Members

Methods
  • CanConvert(System.Type objectType) - A method that returns true if the objectType is Box.
  • WriteJson(Newtonsoft.Json.JsonWriter writer, object value, Newtonsoft.Json.JsonSerializer serializer) - A method that serializes a Box object to a float array of 4 values: Top, Left, Width and Height. These 4 values are properties of the value.
  • PrettyBoxConverter() - The protected default constructor.
  • ReadJson(Newtonsoft.Json.JsonReader reader, System.Type objectType, object existingValue, Newtonsoft.Json.JsonSerializer serializer) - A method that deserializes a Box object representation from a float array of 4 values to a Box object.
  • Description
  • Members

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.