[]
        
(Showing Draft Content)

C1.C1Preview.RenderFragmentCollection.FindByObject

FindByObject Method

FindByObject(RenderObject, bool)

Searches for a RenderFragment in the current collection that was produced by a specific RenderObject.

Declaration
public RenderFragment FindByObject(RenderObject ro, bool findInChildren)
Parameters
Type Name Description
RenderObject ro

The render object to search for.

bool findInChildren

If true then fragment also will be searched in the Children collections of the objects contained in this collection.

Returns
Type Description
RenderFragment

The fragment that was produced by ro, or null if it was not found.

FindByObject(RenderObject)

Searches for a RenderFragment in the current collection that was produced by a specific RenderObject.

Declaration
public RenderFragment FindByObject(RenderObject ro)
Parameters
Type Name Description
RenderObject ro

The render object to search for.

Returns
Type Description
RenderFragment

The fragment that was produced by ro, or null if it was not found.