~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Libraries/AvalonEdit/ICSharpCode.AvalonEdit/Rendering/VisualLineConstructionStartEventArgs.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
using ICSharpCode.AvalonEdit.Document;
 
6
 
 
7
namespace ICSharpCode.AvalonEdit.Rendering
 
8
{
 
9
        /// <summary>
 
10
        /// EventArgs for the <see cref="TextView.VisualLineConstructionStarting"/> event.
 
11
        /// </summary>
 
12
        public class VisualLineConstructionStartEventArgs : EventArgs
 
13
        {
 
14
                /// <summary>
 
15
                /// Gets/Sets the first line that is visible in the TextView.
 
16
                /// </summary>
 
17
                public DocumentLine FirstLineInView { get; private set; }
 
18
                
 
19
                /// <summary>
 
20
                /// Creates a new VisualLineConstructionStartEventArgs instance.
 
21
                /// </summary>
 
22
                public VisualLineConstructionStartEventArgs(DocumentLine firstLineInView)
 
23
                {
 
24
                        if (firstLineInView == null)
 
25
                                throw new ArgumentNullException("firstLineInView");
 
26
                        this.FirstLineInView = firstLineInView;
 
27
                }
 
28
        }
 
29
}