Share via


MouseWheelParameters Class

Definition

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

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

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 pixels (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