UiPath Activities

The UiPath Activities Guide

Box Class

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

Description

A public class that represents a rectangle, used for evidencing and positional referencing, throughout the entire assembly.

Members

Methods

  • CreateChecked(double Top, double left, double Width, double Height) - A static method that returns an instance of the Box class with the properties provided as arguments. This method checks that all provided values are greater than 0, to ensure valid objects are created.
  • CreateSize(double Width, double Height) - A static method that creates an instance of the Box class with a (0,0) position and the Width and Height that are provided as arguments.
  • CreateUnchecked(double Top, double left, double Width, double Height) - A static method that returns an instance of the Box class with the properties provided as arguments. This method does not perform any sanity checks on the arguments.
  • Equals(object Box) - Checks if the argument is a box and if its properties are equal. Returns a boolean value.
  • Equals(Box Box) - Checks if the object is equal to the argument, property-wise.
  • operator ==(Box, Box) - A static method that returns True if the two boxes have equal property values.
  • operator !=(Box, Box) - A static method that returns True if the two boxes have different property values.

Properties

  • None - A static readonly that returns a new Box instance with top, left, width and height equal to 0.
  • Area double - The area of the box.
  • Top double - The top position of the box.
  • Bottom double -The bottom position of the box.
  • Left double - The left margin of the box.
  • Right double - The right margin position of the box.
  • Width double - The width of the box.
  • Height double - The height of the box.
  • HorizontalCenter double - The horizontal center of the box, as Left + Width / 2.
  • VerticalCenter double - The vertical center of the box, as Top + Height / 2.
  • IsEmpty boolean - Specifies whether the Box equals Box.None, property-wise.

Updated 11 months ago


Box Class


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.