Share via


InjectedInputRectangle Struct

Definition

The offsets, from the injected pointer, for the bounding box that represents the touch contact area.

public value class InjectedInputRectangle
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
struct InjectedInputRectangle
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
public struct InjectedInputRectangle
var injectedInputRectangle = {
left : /* Your value */,
top : /* Your value */,
bottom : /* Your value */,
right : /* Your value */
}
Public Structure InjectedInputRectangle
Inheritance
InjectedInputRectangle
Attributes

Windows requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Examples

Here are some downloadable samples demonstrating basic input and input injection:

Remarks

Important

The APIs in this namespace require the inputInjectionBrokered restricted capability.

Using input injection requires the following be added to the Package.appxmanifest:

  • To <Package>
    • xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
    • IgnorableNamespaces="rescap"
  • To <Capabilities>
    • <rescap:Capability Name="inputInjectionBrokered" />

Fields

Bottom

The location of the bottom side of the rectangle, in device-independent pixel (DIP).

Left

The location of the left side of the rectangle, in device-independent pixel (DIP).

Right

The location of the left side of the rectangle, in device-independent pixel (DIP).

Top

The location of the top side of the rectangle, in device-independent pixel (DIP).

Applies to

See also