VirtualKeyboardRect Struct

The rectangle of the on-screen keyboard (https://w3c.github.io/virtual-keyboard/#dom-virtualkeyboard-boundingrect), in CSS pixels relative to the viewport of the top-level document. An empty rectangle means that the keyboard is hidden.

public readonly struct VirtualKeyboardRect : IEquatable<VirtualKeyboardRect>
Implements

Constructors

NameDescription
VirtualKeyboardRect(double, double, double, double)The rectangle of the on-screen keyboard (https://w3c.github.io/virtual-keyboard/#dom-virtualkeyboard-boundingrect), in CSS pixels relative to the viewport of the top-level document. An empty rectangle means that the keyboard is hidden.

VirtualKeyboardRect(double, double, double, double)

The rectangle of the on-screen keyboard (https://w3c.github.io/virtual-keyboard/#dom-virtualkeyboard-boundingrect), in CSS pixels relative to the viewport of the top-level document. An empty rectangle means that the keyboard is hidden.

public VirtualKeyboardRect(double X, double Y, double Width, double Height)

Parameters

X double
The distance from the left edge of the viewport.
Y double
The distance from the top edge of the viewport.
Width double
The width of the keyboard.
Height double
The height of the keyboard.

Properties

NameDescription
HeightThe height of the keyboard.
IsEmptyGets whether the rectangle is empty (the keyboard is hidden).
WidthThe width of the keyboard.
XThe distance from the left edge of the viewport.
YThe distance from the top edge of the viewport.

The height of the keyboard.

public double Height { get; init; }

Property value

double

Gets whether the rectangle is empty (the keyboard is hidden).

public bool IsEmpty { get; }

Property value

bool

The width of the keyboard.

public double Width { get; init; }

Property value

double

The distance from the left edge of the viewport.

public double X { get; init; }

Property value

double

The distance from the top edge of the viewport.

public double Y { get; init; }

Property value

double

Methods

NameDescription
Deconstruct(double, double, double, double)
Equals(VirtualKeyboardRect)
Equals(object)
GetHashCode()
ToString()

Deconstruct(double, double, double, double)

public void Deconstruct(out double X, out double Y, out double Width, out double Height)

Parameters

X double
Y double
Width double
Height double

No documentation is available.

Equals overloads

Equals(VirtualKeyboardRect)

public bool Equals(VirtualKeyboardRect other)
Parameters
other VirtualKeyboardRect
Returns

bool

No documentation is available.

Equals(object)

public override bool Equals(object obj)
Parameters
obj object
Returns

bool

No documentation is available.

GetHashCode()

public override int GetHashCode()

Returns

int

No documentation is available.

ToString()

public override string ToString()

Returns

string

No documentation is available.

Operators

NameDescription
operator ==(VirtualKeyboardRect, VirtualKeyboardRect)
operator !=(VirtualKeyboardRect, VirtualKeyboardRect)

operator ==(VirtualKeyboardRect, VirtualKeyboardRect)

public static bool operator ==(VirtualKeyboardRect left, VirtualKeyboardRect right)

Parameters

left VirtualKeyboardRect
right VirtualKeyboardRect

Returns

bool

No documentation is available.

operator !=(VirtualKeyboardRect, VirtualKeyboardRect)

public static bool operator !=(VirtualKeyboardRect left, VirtualKeyboardRect right)

Parameters

left VirtualKeyboardRect
right VirtualKeyboardRect

Returns

bool

No documentation is available.