int Row

robot_2Generated
code_blocksInput

Description

The Row field in the Editor.VirtualWidget class represents the row index of the widget within a grid or table layout. This field is an integer value that specifies the vertical position of the widget in a multi-row layout.

Usage

Use the Row field to determine or set the row position of a VirtualWidget instance within a grid or table. This can be useful for organizing widgets in a structured layout, especially when dealing with complex UI designs.

Example

// Example of setting the Row field for a VirtualWidget instance
VirtualWidget widget = new VirtualWidget();
widget.Row = 3; // Sets the widget to be in the 4th row (0-based index)

// Example of accessing the Row field
int currentRow = widget.Row;
// Use currentRow for logic that depends on the widget's row position