The LogicalRectangle Constructor(LogicalPoint,LogicalSize) is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
Initializes a new instance of the LogicalRectangle class with the specified location and size.Visual Basic (Declaration) | |
---|---|
Public Function New( _ ByVal location As LogicalPoint, _ ByVal size As LogicalSize _ ) |
Visual Basic (Usage) | Copy Code |
---|---|
Dim location As LogicalPoint Dim size As LogicalSize Dim instance As New LogicalRectangle(location, size) |
C# | |
---|---|
public LogicalRectangle( LogicalPoint location, LogicalSize size ) |
C++/CLI | |
---|---|
public: LogicalRectangle( LogicalPoint location, LogicalSize size ) |
Parameters
- location
- The coordinates of the upper-left corner of the rectangle.
- size
- The width and height of the rectangle.
The location and size units should be equal. If they are different the size will be converted to location's unit of measurement. The new rectangle will have the same units as location.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7