SystemParameters.SnapToDefaultButton 属性

定义

获取一个值,该值指示是否已启用“对齐默认按钮”。 如果已启用,则鼠标光标自动移动到对话框的默认按钮(例如“确定”或“应用”)

public:
 static property bool SnapToDefaultButton { bool get(); };
public static bool SnapToDefaultButton { [System.Security.SecurityCritical] get; }
public static bool SnapToDefaultButton { get; }
[<get: System.Security.SecurityCritical>]
static member SnapToDefaultButton : bool
static member SnapToDefaultButton : bool
Public Shared ReadOnly Property SnapToDefaultButton As Boolean

属性值

如果已启用该功能,则为 true;否则为 false

属性

注解

从SPI_GETSNAPTODEFBUTTON获取此指标。 请参阅 SystemParametersInfo

XAML 属性使用方法

<object property=“{ SystemParameters.SnapToDefaultButton}”/>

适用于