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

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.
  • CreateUncheckedWithNoRounding(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 or rounding 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.
  • GetHashCode() - Returns the hash code for the instance.
  • operator !=(Box, Box) - A static method that returns True if the two boxes have different property values.
  • operator ==(Box, Box) - A static method that returns True if the two boxes have equal property values.
Properties
  • Area double - The area of the box.
  • Bottom double -The bottom position of the box.
  • Height double - The height of the box.
  • HorizontalCenter double - The horizontal center of the box, as Left + Width / 2.
  • IsEmpty boolean - Specifies whether the Box equals Box.None, property-wise.
  • Left double - The left margin of the box.
  • Right double - The right margin position of the box.
  • Top double - The top position of the box.
  • VerticalCenter double - The vertical center of the box, as Top + Height / 2.
  • Width double - The width of the box.
  • None - A static readonly that returns a new Box instance with top, left, width and height equal to 0.
  • 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.