HitTestOptions 枚举

定义

指定在视觉样式指定的背景上执行点击测试时可以使用的选项。Specifies the options that can be used when performing a hit test on the background specified by a visual style.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class HitTestOptions
[System.Flags]
public enum HitTestOptions
type HitTestOptions = 
Public Enum HitTestOptions
继承
HitTestOptions
属性

字段

BackgroundSegment 0

用于背景部分的点击测试选项。The hit test option for the background segment.

Caption 4

用于标题的点击测试选项。The hit test option for the caption.

FixedBorder 2

用于固定边框的点击测试选项。The hit test option for the fixed border.

ResizingBorder 240

用于可调边框的点击测试选项。The hit test option for the resizing border.

ResizingBorderBottom 128

用于可调下边框的点击测试选项。The hit test option for the bottom resizing border.

ResizingBorderLeft 16

用于可调左边框的点击测试选项。The hit test option for the left resizing border.

ResizingBorderRight 64

用于可调右边框的点击测试选项。The hit test option for the right resizing border.

ResizingBorderTop 32

用于可调上边框的点击测试选项。The hit test option for the top resizing border.

SizingTemplate 256

可调边框被指定为模板,而不仅仅是窗口边界。The resizing border is specified as a template, not just window edges. 此选项与 SystemSizingMargins 互斥;SizingTemplate 优先。This option is mutually exclusive with SystemSizingMargins; SizingTemplate takes precedence.

SystemSizingMargins 512

使用系统可调边框的宽度,而不使用视觉样式的内容边距。The system resizing border width is used instead of visual style content margins. 此选项与 SizingTemplate 互斥;SizingTemplate 优先。This option is mutually exclusive with SizingTemplate; SizingTemplate takes precedence.

注解

这些值用作VisualStyleRenderer.HitTestBackground方法中的参数。 HitTestOptionsThe HitTestOptions values are used as an argument in the VisualStyleRenderer.HitTestBackground method.

适用于