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

PredefinedTextViewRoles.cs « Editor « TextUI « Def « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ceb2609bcd93299d9884b7e607479b1d58a5ab08 (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
// Copyright (c) Microsoft Corporation
// All rights reserved

namespace Microsoft.VisualStudio.Text.Editor
{
    using System.Collections.Generic;

    /// <summary>
    /// Specifies the names of the pre-defined text view roles supplied by Visual Studio.
    /// </summary>
    public static class PredefinedTextViewRoles
    {
        // The following are the default text view roles.

        /// <summary>
        /// The predefined Document role. Applies to text views of entities, typically stored in files, that have
        /// a definite first line and last line. This excludes entities such as output logs or textual displays of
        /// data that are presented in a form.
        /// </summary>
        public const string Document = "DOCUMENT";

        /// <summary>
        /// The predefined Structured role. Applies to text views of entities that have internal structure that should
        /// be exposed by editor facilities such as Outlining.
        /// </summary>
        public const string Structured = "STRUCTURED";

        /// <summary>
        /// The predefined Interactive role. Applies to text views with which the user can interact using the mouse and/or
        /// keyboard. Views that are not interactive cannot display a caret or a selection and cannot have keyboard input.
        /// </summary>
        public const string Interactive = "INTERACTIVE";

        /// <summary>
        /// The predefined Editable role. Applies to text views that can be changed using the keyboard.
        /// </summary>
        public const string Editable = "EDITABLE";

        /// <summary>
        /// The predefined Analyzable role. Applies to text views of entities that can be analyzed for errors or
        /// other information (such as "quick info").
        /// </summary>
        public const string Analyzable = "ANALYZABLE";

        /// <summary>
        /// The predefined Zoomable role. Applies to text views of entities that allow the user to perform zooming operations.
        /// </summary>
        public const string Zoomable = "ZOOMABLE";


        // These are the non-default text view roles.

        /// <summary>
        /// The predefined Primary Document role. Applies to text views of documents that are open for mainline editing,
        /// excluding auxiliary views of documents.
        /// </summary>
        public const string PrimaryDocument = "PRIMARYDOCUMENT";

        /// <summary>
        /// The predefined Debuggable role. Applies to text views of entities in which the debugger can display information
        /// at runtime.
        /// </summary>
        public const string Debuggable = "DEBUGGABLE";

        /// <summary>
        /// The predefined role used for the preview window created by the enhanced scroll bar.
        /// </summary>
        public const string PreviewTextView = "ENHANCED_SCROLLBAR_PREVIEW";

        /// <summary>
        /// The predefined role used for text views embedded within a containing text view.
        /// </summary>
        public const string EmbeddedPeekTextView = "EMBEDDED_PEEK_TEXT_VIEW";

        /// <summary>
        /// The predefined role used for code definition windows.
        /// </summary>
        public const string CodeDefinitionView = "CODEDEFINITION";

        /// <summary>
        /// The predefined role used for printable views.
        /// </summary>
        public const string Printable = "PRINTABLE";
    }
}