BringIntoViewOptions.VerticalAlignmentRatio Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Controls the positioning of the horizontal axis of the TargetRect with respect to the horizontal axis of the viewport. The value is clamped from 0.0f to 1.0f with 0.0f representing the top horizontal edge and 1.0f representing the bottom horizontal edge. By default this is set to 0.0f.
public:
property double VerticalAlignmentRatio { double get(); void set(double value); };
double VerticalAlignmentRatio();
void VerticalAlignmentRatio(double value);
public double VerticalAlignmentRatio { get; set; }
var double = bringIntoViewOptions.verticalAlignmentRatio;
bringIntoViewOptions.verticalAlignmentRatio = double;
Public Property VerticalAlignmentRatio As Double
Property Value
double
A value that specifies the positioning of the horizontal axis of the TargetRect with respect to the horizontal 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 indicates the TargetRect should be top-aligned in the viewport. A value of 1.0f indicates it should be bottom-aligned. A value of 0.5 indicates the TargetRect is vertically centered in the viewport.