Table of Contents

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 VFRectIntl

Inherited 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

left int

The x-coordinate of the left edge.

top int

The y-coordinate of the top edge.

right int

The x-coordinate of the right edge.

bottom int

The y-coordinate of the bottom edge.

Fields

Bottom

The y-coordinate of the bottom edge of the rectangle.

public int Bottom

Field Value

int

Left

The x-coordinate of the left edge of the rectangle.

public int Left

Field Value

int

Right

The x-coordinate of the right edge of the rectangle.

public int Right

Field Value

int

Top

The y-coordinate of the top edge of the rectangle.

public int Top

Field Value

int

Methods

ToString()

Returns a string that represents the current VisioForge.Core.Types.VFRectIntl instance in a human-readable format.

public override string ToString()

Returns

string

A String that represents this instance, showing coordinates and calculated width and height.