HideSelection 属性HideSelection property
Specifies whether selected text remains highlighted when a control does not have the focus.Specifies whether selected text remains highlighted when a control does not have the focus.
语法Syntax
对象。HideSelection[= Boolean ]object.HideSelection [= Boolean ]
“HideSelection”**** 属性语法由以下三个部分构成:The HideSelection property syntax has these parts:
PartPart | 说明Description |
---|---|
objectobject | 必需。Required. 对象有效。A valid object. |
BooleanBoolean | 可选。Optional. 甚至,在该控件没有焦点时是否突出显示所选文本 。Whether the selected text remains highlighted even when the control does not have the focus. |
设置Settings
Boolean 的设置如下:The settings for Boolean are:
值Value | 说明Description |
---|---|
TrueTrue | 除非该控件有焦点(默认),否则不会突出显示所选文本。Selected text is not highlighted unless the control has the focus (default). |
FalseFalse | 始终突出显示所选文本。Selected text always appears highlighted. |
备注Remarks
当其他窗体或对话框接收到焦点时,可以使用 HideSelection 属性来保持文本的突出显示,例如在拼写检查过程中。You can use the HideSelection property to maintain highlighted text when another form or a dialog box receives the focus, such as in a spell-checking procedure.
另请参阅See also
- Microsoft Forms 示例Microsoft Forms examples
- Microsoft Forms 参考Microsoft Forms reference
- Microsoft Forms 概念Microsoft Forms concepts
支持和反馈Support and feedback
有关于 Office VBA 或本文档的疑问或反馈?Have questions or feedback about Office VBA or this documentation? 请参阅 Office VBA 支持和反馈,获取有关如何接收支持和提供反馈的指南。Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.