Dela via


RenderTreeFrame.ComponentReferenceCaptureParentFrameIndex Property

Definition

If the FrameType property equals ComponentReferenceCapture, gets the index of the parent frame representing the component being captured. Otherwise, the value is undefined. WARNING: This index can only be used in the context of the frame's original render tree. If the frame is copied elsewhere, such as to the ReferenceFrames buffer of a RenderTreeDiff, then the index will not relate to entries in that other buffer. Currently there's no scenario where this matters, but if there was, we could change all of the subtree initialization logic in RenderTreeDiffBuilder to walk the frames hierarchically, then it would know the parent index at the point where it wants to initialize the ComponentReferenceCapture frame.

public:
 property int ComponentReferenceCaptureParentFrameIndex { int get(); };
public int ComponentReferenceCaptureParentFrameIndex { get; }
member this.ComponentReferenceCaptureParentFrameIndex : int
Public ReadOnly Property ComponentReferenceCaptureParentFrameIndex As Integer

Property Value

Applies to