Welcome to mirror list, hosted at ThFree Co, Russian Federation.

PredefinedSelectionTransformations.cs « MultiCaret « TextUI « Def « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d8ced810c07be1da7cbf76f64f196caf99a91664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//
namespace Microsoft.VisualStudio.Text
{
    /// <summary>
    /// Defines a set of actions that are predefined for manipulating selections within a view. For custom manipulations see the usage
    /// of <see cref="ISelectionTransformer"/>. These transformations can be passed in to
    /// <see cref="IMultiSelectionBroker.PerformActionOnAllSelections(PredefinedSelectionTransformations)"/>,
    /// <see cref="IMultiSelectionBroker.TryPerformActionOnSelection(Selection, PredefinedSelectionTransformations, out Selection)"/>,
    /// and <see cref="ISelectionTransformer.PerformAction(PredefinedSelectionTransformations)"/>.
    /// </summary>
#pragma warning disable CA1717 // Only FlagsAttribute enums should have plural names
    public enum PredefinedSelectionTransformations
#pragma warning restore CA1717 // Only FlagsAttribute enums should have plural names
    {
        /// <summary>
        /// Resets the active and anchor points to be at the insertion point.
        /// </summary>
        ClearSelection,

        /// <summary>
        /// Moves the active, anchor, and insertion points ahead one position in the view.
        /// </summary>
        MoveToNextCaretPosition,

        /// <summary>
        /// Moves the active and insertion points ahead one position in the view, keeping the anchor point where it is.
        /// </summary>
        SelectToNextCaretPosition,

        /// <summary>
        /// Moves the active, anchor, and insertion points back one position in the view.
        /// </summary>
        MoveToPreviousCaretPosition,

        /// <summary>
        /// Moves the active and insertion points back one position in the view, keeping the anchor point where it is.
        /// </summary>
        SelectToPreviousCaretPosition,

        /// <summary>
        /// Moves the active, anchor, and insertion points ahead to the beginning of the next word.
        /// </summary>
        MoveToNextWord,

        /// <summary>
        /// Moves the active and insertion points ahead to the beginning of the next word, keeping the anchor point where it is.
        /// </summary>
        SelectToNextWord,

        /// <summary>
        /// Moves the active, anchor, and insertion points back to the end of the previous word.
        /// </summary>
        MoveToPreviousWord,

        /// <summary>
        /// Moves the active and insertion points back to the end of the previous word, keeping the anchor point where it is.
        /// </summary>
        SelectToPreviousWord,

        /// <summary>
        /// Moves the active, anchor, and insertion points back to the beginning of the current line.
        /// </summary>
        MoveToBeginningOfLine,

        /// <summary>
        /// Moves the active and insertion points back to the beginning of the current line, keeping the anchor point where it is.
        /// </summary>
        SelectToBeginningOfLine,

        /// <summary>
        /// Moves the active, anchor, and insertion points alternately between the beginning of the line, and the first non-whitespace character.
        /// </summary>
        MoveToHome,

        /// <summary>
        /// Moves the active and insertion points alternately between the beginning of the line, and the first non-whitespace character, keeping the anchor point where it is.
        /// </summary>
        SelectToHome,

        /// <summary>
        /// Moves the active, anchor, and insertion points ahead to the end of the current line.
        /// </summary>
        MoveToEndOfLine,

        /// <summary>
        /// Moves the active and insertion points ahead to the end of the current line, keeping the anchor point where it is.
        /// </summary>
        SelectToEndOfLine,

        /// <summary>
        /// Moves the active, anchor, and insertion points ahead to next line, staying as close to the user's preferred x-coordinate in the view as possible.
        /// </summary>
        MoveToNextLine,

        /// <summary>
        /// Moves the active and insertion points ahead to next line, staying as close to the user's preferred x-coordinate in the view as possible, keeping the anchor point where it is.
        /// </summary>
        SelectToNextLine,

        /// <summary>
        /// Moves the active, anchor, and insertion points back to the previous line, staying as close to the user's preferred x-coordinate in the view as possible.
        /// </summary>
        MoveToPreviousLine,

        /// <summary>
        /// Moves the active and insertion points back to the previous line, staying as close to the user's preferred x-coordinate in the view as possible, keeping the anchor point where it is.
        /// </summary>
        SelectToPreviousLine,

        /// <summary>
        /// Moves the active, anchor, and insertion points back one viewport height, staying as close to the user's preferred x and y coordinates in the view as possible.
        /// </summary>
        MovePageUp,

        /// <summary>
        /// Moves the active and insertion points back one viewport height, staying as close to the user's preferred x and y coordinates in the view as possible, keeping the anchor point where it is.
        /// </summary>
        SelectPageUp,

        /// <summary>
        /// Moves the active, anchor, and insertion points ahead one viewport height, staying as close to the user's preferred x and y coordinates in the view as possible.
        /// </summary>
        MovePageDown,

        /// <summary>
        /// Moves the active and insertion points ahead one viewport height, staying as close to the user's preferred x and y coordinates in the view as possible, keeping the anchor point where it is.
        /// </summary>
        SelectPageDown,

        /// <summary>
        /// Moves the active, anchor, and insertion points back to the beginning of the document.
        /// </summary>
        MoveToStartOfDocument,

        /// <summary>
        /// Moves the active and insertion points back to the beginning of the document, keeping the anchor point where it is.
        /// </summary>
        SelectToStartOfDocument,

        /// <summary>
        /// Moves the active, anchor, and insertion points ahead to the end of the document.
        /// </summary>
        MoveToEndOfDocument,

        /// <summary>
        /// Moves the active and insertion points ahead to the end of the document, keeping the anchor point where it is.
        /// </summary>
        SelectToEndOfDocument,

        /// <summary>
        /// Moves the anchor point to the beginning of the current word. Moves the active and insertion points to the end of the current word.
        /// </summary>
        SelectCurrentWord
    }
}