BringIntoViewOptions 類別

定義

表示專案進入檢視時可以套用的選項。

public ref class BringIntoViewOptions sealed
/// [Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 262144)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class BringIntoViewOptions final
[Windows.Foundation.Metadata.Activatable(262144, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 262144)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class BringIntoViewOptions
Public NotInheritable Class BringIntoViewOptions
繼承
Object Platform::Object IInspectable BringIntoViewOptions
屬性

Windows 需求

裝置系列
Windows 10 Creators Update (已於 10.0.15063.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v4.0 引進)

備註

如需詳細資訊,請參閱 UIElement.StartBringIntoView 方法。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1803 17134 HorizontalAlignmentRatio
1803 17134 HorizontalOffset
1803 17134 VerticalAlignmentRatio
1803 17134 VerticalOffset

建構函式

BringIntoViewOptions()

初始化 BringIntoViewOptions 類別的新實例。

屬性

AnimationDesired

取得或設定值,這個值表示是否要在專案進入檢視時使用動畫。

HorizontalAlignmentRatio

控制 TargetRect 垂直軸相對於檢視區垂直軸的位置。 此值會從 0.0f 限制為 1.0f,而 0.0f 代表左垂直邊緣,而 1.0f 則代表右垂直邊緣。 根據預設,這會設定為 0.0f。

HorizontalOffset

取得或設定在滿足所要求 HorizontalAlignmentRatio之後,要新增至 TargetRect 檢視區相對位置的水準距離。

TargetRect

取得或設定要帶入檢視的專案區域。

VerticalAlignmentRatio

控制 TargetRect 的水準軸相對於檢視區水準軸的位置。 此值會從 0.0f 限制為 1.0f,而 0.0f 代表上層水準邊緣,而 1.0f 則代表底部水準邊緣。 根據預設,這會設定為 0.0f。

VerticalOffset

取得或設定在滿足要求的 VerticalAlignmentRatio之後,要新增至 TargetRect 檢視區相對位置的垂直距離。

適用於