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

ITextView2.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: 38ff6652922adada23c58eb61c55597b4ec8d94f (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
//
//  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
{
    using System;

    /// <summary>
    /// An extension of the ITextView that exposes some internal hooks.
    /// </summary>
    public interface ITextView2 : ITextView
    {
        /// <summary>
        /// The MaxTextRightCoordinate of the view based only on the text contained in the view.
        /// </summary>
        double RawMaxTextRightCoordinate
        {
            get;
        }

        /// <summary>
        /// The minimum value for the view's MaxTextRightCoordinate.
        /// </summary>
        /// <remarks>
        /// If setting this value changes the view's MaxTextRightCoordinate, the view will raise a layout changed event.
        /// </remarks>
        double MinMaxTextRightCoordinate
        {
            get;
            set;
        }

        /// <summary>
        /// Raised whenever the view's MaxTextRightCoordinate is changed.
        /// </summary>
        /// <remarks>
        /// This event will only be rasied if the MaxTextRightCoordinate is changed by changing the MinMaxTextRightCoordinate property
        /// (it will not be raised as a side-effect of a layout even if the layout does change the MaxTextRightCoordinate).
        /// </remarks>
        event EventHandler MaxTextRightCoordinateChanged;
    }
}