Struct VFRectIntl
- Namespace
- VisioForge.Core.Types
- Assembly
- VisioForge.Core.dll
Represents an internal rectangular area defined by its left, top, right, and bottom coordinates. This struct is primarily used for interoperation with native code due to its sequential memory layout.
public struct VFRectIntlInherited Members
Extension Methods
Remarks
This struct is marked with [StructLayout(LayoutKind.Sequential)] to ensure its memory layout is compatible with unmanaged structures.
It is similar to VisioForge.Core.Types.Rect but is a value type (struct) and intended for internal or interop scenarios where precise memory control is needed.
Being a struct, it's allocated on the stack and passed by value, making it more efficient for P/Invoke scenarios and native callbacks.
The struct uses public fields rather than properties for direct memory access compatibility with native code.
All fields are integers representing pixel coordinates.
On Windows, it can be constructed from System.Drawing.Rectangle for easy integration with GDI+.
The ToString method provides a detailed representation showing both coordinates and calculated dimensions.
This type is used internally by the framework when passing rectangle data to native components or receiving it from native callbacks.
Constructors
VFRectIntl(int, int, int, int)
Initializes a new instance of the VisioForge.Core.Types.VFRectIntl struct with specified integer coordinates.
public VFRectIntl(int left, int top, int right, int bottom)Parameters
leftint-
The x-coordinate of the left edge.
topint-
The y-coordinate of the top edge.
rightint-
The x-coordinate of the right edge.
bottomint-
The y-coordinate of the bottom edge.
Fields
Bottom
The y-coordinate of the bottom edge of the rectangle.
public int BottomField Value
Left
The x-coordinate of the left edge of the rectangle.
public int LeftField Value
Right
The x-coordinate of the right edge of the rectangle.
public int RightField Value
Top
The y-coordinate of the top edge of the rectangle.
public int TopField Value
Methods
ToString()
Returns a string that represents the current VisioForge.Core.Types.VFRectIntl instance in a human-readable format.
public override string ToString()