Represents text stored using a native ptr.
This text will only be converted to a CLR string upon request, improving performance when its not needed.
예제 #1
0
파일: INpp.cs 프로젝트: manpl/nppsharp
 /// <summary>
 /// Creates the event arguments object.
 /// </summary>
 /// <param name="type">The type of modification that occurred.</param>
 /// <param name="text">The text inserted or deleted.</param>
 /// <param name="location">The location of the modification.</param>
 /// <param name="userAction">A flag indicating if this action was caused by the user.</param>
 /// <param name="undo">A flag indicating if this action is part of an undo process.</param>
 /// <param name="redo">A flag indicating if this action is part of a redo process.</param>
 /// <param name="linesAdded">The number of lines added by this modification.</param>
 public ModifiedEventArgs(ModificationType type, TextPtr text, TextLocation location, bool userAction, bool undo, bool redo, int linesAdded)
 {
     ModificationType = type;
     Text             = text;
     Location         = location;
     UserAction       = userAction;
     Undo             = undo;
     Redo             = redo;
     LinesAdded       = linesAdded;
 }
예제 #2
0
파일: INpp.cs 프로젝트: cmrazek/NppSharp
 /// <summary>
 /// Creates the event arguments object.
 /// </summary>
 /// <param name="type">The type of modification that occurred.</param>
 /// <param name="text">The text inserted or deleted.</param>
 /// <param name="location">The location of the modification.</param>
 /// <param name="userAction">A flag indicating if this action was caused by the user.</param>
 /// <param name="undo">A flag indicating if this action is part of an undo process.</param>
 /// <param name="redo">A flag indicating if this action is part of a redo process.</param>
 /// <param name="linesAdded">The number of lines added by this modification.</param>
 public ModifiedEventArgs(ModificationType type, TextPtr text, TextLocation location, bool userAction, bool undo, bool redo, int linesAdded)
 {
     ModificationType = type;
     Text = text;
     Location = location;
     UserAction = userAction;
     Undo = undo;
     Redo = redo;
     LinesAdded = linesAdded;
 }