AutomationPeer.IsOffscreen 方法

定义

获取一个值,该值指示元素是否不在屏幕上。Gets a value that indicates whether an element is off the screen.

public:
 bool IsOffscreen();
public bool IsOffscreen ();
member this.IsOffscreen : unit -> bool
Public Function IsOffscreen () As Boolean

返回

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

例外

目前正在对此方法进行公开调用。A public call to this method is currently in progress.

注解

此属性不指示元素是否可见。This property does not indicate whether the element is visible. 在某些情况下,元素位于屏幕上,但仍不可见。In some circumstances, an element is on the screen but is still not visible. 例如,如果元素位于屏幕上,但被其他元素遮盖,则它可能不可见。For example, if the element is on the screen but obscured by other elements, it might not be visible. 在这种情况下,该方法将返回 falseIn this case, the method returns false.

适用于

另请参阅