Calculate a control size corresponding to the specified screen size.

Namespace:  Rebex.TerminalEmulation
Assembly:  Rebex.Terminal (in Rebex.Terminal.dll)

Syntax

Visual Basic
Public Function GetControlSize ( _
	columns As Integer, _
	rows As Integer _
) As Size
C#
public Size GetControlSize(
	int columns,
	int rows
)

Parameters

columns
Type: System..::..Int32
Desired horizontal size in character columns.
rows
Type: System..::..Int32
Desired vertical size in character rows.

Return Value

Control size.

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

See Also