Share via


ContentIsland.GetByVisual(Visual) Method

Definition

Retrieves the ContentIsland that contains the specified child **Visual** object on the current thread.

public:
 static ContentIsland ^ GetByVisual(Visual ^ child);
 static ContentIsland GetByVisual(Visual const& child);
public static ContentIsland GetByVisual(Visual child);
function getByVisual(child)
Public Shared Function GetByVisual (child As Visual) As ContentIsland

Parameters

child
Visual

The child visual object.

Returns

the ContentIsland that contains the specified child **Visual** object, or null if the content island is not a parent of the visual object.

If the **Visual** passed in is not associated with the current thread, RPC_E_WRONGTHREAD will be returned.

Applies to