Dela via


MouseWheelParameters Class

Definition

Provides properties associated with the button wheel of a mouse device.

public ref class MouseWheelParameters sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
class MouseWheelParameters final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.None)]
public sealed class MouseWheelParameters
Public NotInheritable Class MouseWheelParameters
Inheritance
Object Platform::Object IInspectable MouseWheelParameters
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The properties exposed through MouseWheelParameters are used in conjunction with the Wheel settings in the Mouse control panel to define the UI experience when using the button wheel.

The mouse wheel button has discrete, evenly spaced notches or distance thresholds (also called detents). When you rotate or tilt the wheel, a wheel message is sent as each detent is encountered.

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

Properties

CharTranslation

Gets or sets the conversion factors for both character width and line height units, in device-independent pixel (DIP).

DeltaRotationAngle

Gets or sets a value that indicates the change in the angle of rotation associated with input from the wheel button of a mouse.

DeltaScale

Gets or sets a value that indicates the change in scale associated with input from the wheel button of a mouse.

PageTranslation

Gets or sets the conversion factors for both page width and height units, in device-independent pixel (DIP).

Applies to

See also