ICSharpCode.NRefactory.Editor.TextChangeEventArgs.TextChangeEventArgs C# (CSharp) Method

TextChangeEventArgs() public method

Creates a new TextChangeEventArgs object.
public TextChangeEventArgs ( int offset, ITextSource removedText, ITextSource insertedText ) : System
offset int
removedText ITextSource
insertedText ITextSource
return System
        public TextChangeEventArgs(int offset, ITextSource removedText, ITextSource insertedText)
        {
            if (offset < 0)
                throw new ArgumentOutOfRangeException("offset", offset, "offset must not be negative");
            this.offset = offset;
            this.removedText = removedText ?? StringTextSource.Empty;
            this.insertedText = insertedText ?? StringTextSource.Empty;
        }

Same methods

TextChangeEventArgs::TextChangeEventArgs ( int offset, string removedText, string insertedText ) : System