Example #1
0
 /// <summary>
 /// Create active new model containing specified text
 /// </summary>
 /// <param name="subject">The PStyledText the instance is modelling</param>
 /// <param name="startText">The text it should contain</param>
 public Model(PStyledText subject, string startText)
 {
     Subject = subject;
     Text = startText;
     Select(Text.Length, 0);
 }
Example #2
0
 /// <summary>
 /// Sets the current selection of a PStyledText to the current style
 /// </summary>
 /// <param name="target"></param>
 public void ApplyStyle(PStyledText target)
 {
     ApplyStyle(target.Model);
 }