Dela via


BringIntoViewOptions.HorizontalAlignmentRatio Property

Definition

Controls the positioning of the vertical axis of the TargetRect with respect to the vertical axis of the viewport. The value is clamped from 0.0f to 1.0f with 0.0f representing the left vertical edge and 1.0f representing the right vertical edge. By default this is set to 0.0f.

public:
 property double HorizontalAlignmentRatio { double get(); void set(double value); };
double HorizontalAlignmentRatio();

void HorizontalAlignmentRatio(double value);
public double HorizontalAlignmentRatio { get; set; }
var double = bringIntoViewOptions.horizontalAlignmentRatio;
bringIntoViewOptions.horizontalAlignmentRatio = double;
Public Property HorizontalAlignmentRatio As Double

Property Value

Double

double

A value that specifies the positioning of the vertical axis of the TargetRect with respect to the vertical axis of the viewport. The default is 0.0f.

Windows requirements

Device family
Windows 10, version 1803 (introduced in 10.0.17134.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v6.0)

Remarks

A value of 0.0f indicate the TargetRect should be left-aligned in the viewport. A value of 1.0f indicates it should be right-aligned. A value of 0.5 indicates the TargetRect is horizontally centered in the viewport.

Applies to