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.
Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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;
 }