ISelectionTransformer Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Allows changing existing Selection objects as part of PerformActionOnAllSelections(Action<ISelectionTransformer>) and TryPerformActionOnSelection(Selection, Action<ISelectionTransformer>, Selection).
public interface class ISelectionTransformer
public interface ISelectionTransformer
type ISelectionTransformer = interface
Public Interface ISelectionTransformer
Properties
Selection |
Gets the Selection to transform. This will change through calls to PerformAction(PredefinedSelectionTransformations), MoveTo(VirtualSnapshotPoint, Boolean, PositionAffinity), and MoveTo(VirtualSnapshotPoint, VirtualSnapshotPoint, VirtualSnapshotPoint, PositionAffinity). |
Methods
CapturePreferredReferencePoint() |
Updates internal state to cache the current location as the desired reference point for navigation events. |
CapturePreferredXReferencePoint() |
Updates internal state to cache the current x location as the desired reference point for navigation events. |
CapturePreferredYReferencePoint() |
Updates internal state to cache the current y location as the desired reference point for navigation events. |
MoveTo(VirtualSnapshotPoint, Boolean, PositionAffinity) |
Moves the insertion and active points to the given location. |
MoveTo(VirtualSnapshotPoint, VirtualSnapshotPoint, VirtualSnapshotPoint, PositionAffinity) |
Sets the anchor, active, and insertion points to the specified locations. |
PerformAction(PredefinedSelectionTransformations) |
Transforms Selection in a predefined way. |