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

ViewRelativePosition2.cs « TextUI « Internal « Def « Text « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2152d22de8042768dea9c0b5d86ddf26c2507c38 (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
//
//  Copyright (c) Microsoft Corporation. All rights reserved.
//  Licensed under the MIT License. See License.txt in the project root for license information.
//
// This file contain internal APIs that are subject to change without notice.
// Use at your own risk.
//
namespace Microsoft.VisualStudio.Text.Editor
{
    /// <summary>
    /// Defines the meaning of the verticalOffset parameter in the <see cref="ITextView"/>.DisplayTextLineContaining(...).
    /// </summary>
    /// <remarks>
    /// This enum adds a couple of modes to the ViewRelativePosition that we need to support for the InterLineAdornments
    /// but don't want to expose. The WpfTextView accepts the new values but doesn't pass them on to anyone else.
    /// </remarks>
    public enum ViewRelativePosition2
    {
        /// <summary>
        /// The offset with respect to the top of the view to the top of the line.
        /// </summary>
        /// <remarks>
        /// Must match ViewRelativePosition.Top.
        /// </remarks>
        Top = ViewRelativePosition.Top,

        /// <summary>
        /// The offset with respect to the bottom of the view to the bottom of the line.
        /// </summary>
        /// <remarks>
        /// Must match ViewRelativePosition.Bottom.
        /// </remarks>
        Bottom = ViewRelativePosition.Bottom,

        /// <summary>
        /// The offset with respect to the top of the view to the top of the text on the line.
        /// </summary>
        TextTop,

        /// <summary>
        /// The offset with respect to the bottom of the view to the bottom of the text on the line.
        /// </summary>
        TextBottom,

        /// <summary>
        /// The offset is with respect to the BaseLine of the line containing bufferPosition.
        /// </summary>
        /// <remarks>
        /// If this positioning mode is used (and only this positioning mode), then bufferPosition can be default(SnapshotPoint).
        /// If a default(SnapshotPoint) is used or one is given but that line is not visible, then the view will pick an appropriate line to use.
        /// </remarks>
        Baseline
    }
}