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

BaseLeftBufferChangedEventArgs.cs « DifferenceBuffer « TextLogic « Def « Text « Editor « src - github.com/microsoft/vs-editor-api.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2a4ddc876cacd4768ca1f8f4f2a529033bcbf2fd (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
//
//  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.Differencing
{
    using System;

    /// <summary>
    /// Raised whenever the left buffer of an <see cref="IDifferenceBuffer2"/> changes. This can only
    /// happen if <see cref="IDifferenceBuffer2.HasFixedBaseLeftBuffer"/> is false.
    /// </summary>
    public class BaseLeftBufferChangedEventArgs : EventArgs
    {
        public BaseLeftBufferChangedEventArgs(ITextBuffer oldBuffer, ITextBuffer newBuffer)
        {
            this.OldBuffer = oldBuffer;
            this.NewBuffer = newBuffer;
        }

        public ITextBuffer OldBuffer { get; }
        public ITextBuffer NewBuffer { get; }
    }
}