/// <summary> Constructor. </summary> protected ConvertTextBlockToTextBlockAction(TextCaret caret) { _handle = new DocumentCursorHandle(caret); var block = caret.Block; _originalDescriptor = block.DescriptorHandle; _originalProperties = block.SerializeProperties(); }
/// <summary> /// Moves to he cursor to point to the location given by <paramref name="handle"/>. /// </summary> public static void MoveTo(this DocumentSelection cursor, DocumentCursorHandle handle, DocumentEditorContext context) => cursor.Replace(handle.GetCaret(context));