Sdílet prostřednictvím


ISelectionTransformer.CapturePreferredReferencePoint Method

Definition

Updates internal state to cache the current location as the desired reference point for navigation events.

public:
 void CapturePreferredReferencePoint();
public void CapturePreferredReferencePoint ();
abstract member CapturePreferredReferencePoint : unit -> unit
Public Sub CapturePreferredReferencePoint ()

Remarks

This affects events like MoveToPreviousLine where the current X location of the rendered caret is used to project to the new location. Typically this method should be called in cases where the user is stating where they want to focus. Since this grabs the current state, there is no equivalent release method.

Applies to