AccessibleObject.IAccessible.accFocus 屬性

定義

取得具有鍵盤焦點的物件。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.

實作

備註

@No__t-0 屬性的傳回數值型別取決於具有鍵盤焦點的物件。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;否則為子系可存取物件的子系識別碼,並具有鍵盤焦點。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.

適用於