AccessibleObject.IAccessible.accFocus AccessibleObject.IAccessible.accFocus AccessibleObject.IAccessible.accFocus Property

定义

获取具有键盘焦点的对象。Gets the object that has the keyboard focus. 有关此成员的说明,请参见 accFocusFor a description of this member, see accFocus.

property System::Object ^ Accessibility::IAccessible::accFocus { System::Object ^ get(); };
object Accessibility.IAccessible.accFocus { get; }
 ReadOnly Property accFocus As Object Implements IAccessible.accFocus

属性值

具有键盘焦点的对象。The object that has keyboard focus.

实现

注解

IAccessible.accFocus属性的返回值类型取决于具有键盘焦点的对象。The return value type of the IAccessible.accFocus property depends on the object that has keyboard focus. 下表介绍IAccessible.accFocus属性返回的对象类型。The following table describes the object types that the IAccessible.accFocus property returns.

类型Type 说明Description
null 此对象本身不具有键盘焦点,并且不包含具有键盘焦点的子对象。This object does not have the keyboard focus itself and does not contain a child that has the keyboard focus.
integerinteger 如果当前对象具有键盘焦点,则为 0;否则,具有键盘焦点的子辅助性对象的子 ID。0 if the current object has keyboard focus; otherwise, the child ID of the child accessible object with keyboard focus.
IAccessible 具有键盘焦点的子级辅助性对象。The child accessible object that has the keyboard focus.

此成员是显式接口成员的实现。This member is an explicit interface member implementation. 它只能在 AccessibleObject 实例被强制转换为 IAccessible 接口时使用。It can be used only when the AccessibleObject instance is cast to an IAccessible interface.

适用于