ListBoxItemWrapperAutomationPeer.IsOffscreenCore 方法

定义

获取一个值,该值指示与此 ListBoxItem 对象关联的 ListBoxItemWrapperAutomationPeer 控件是否不在屏幕上。Gets a value that indicates whether the ListBoxItem control that is associated with this ListBoxItemWrapperAutomationPeer object is off the screen. 此方法由 IsOffscreen() 调用。This method is called by IsOffscreen().

protected:
 override bool IsOffscreenCore();
protected override bool IsOffscreenCore ();
override this.IsOffscreenCore : unit -> bool
Protected Overrides Function IsOffscreenCore () As Boolean

返回

Boolean

如果该元素不在屏幕上,则为 true;否则为 falsetrue if the element is not on the screen; otherwise, false.

注解

此方法并不指示元素是否可见。This method does not indicate whether the element is visible. 在某些情况下,元素可以位于屏幕上,但仍不可见 (例如,由其他元素遮盖的元素) 。In some circumstances, the element can be on the screen but still not be visible (for example, an element that is obscured by other elements).

适用于