Exemple #1
0
 protected override void SetChars(FormattedTextEl fte, Config conf)
 {
     for (int i = fte.First; i <= fte.Last; i++)
     {
         formattedText[i].SetChar(fte.cf, conf);
     }
 }
Exemple #2
0
 /// <summary>
 /// Applique le formatage voulu au <see cref="FormattedTextEl"/> sur l'affichage.
 /// </summary>
 /// <exception cref="ArgumentNullException"> si <paramref name="fte"/> est <c>null</c>.
 /// </exception>
 /// <param name="fte">Le <see cref="FormattedTextEl"/> qui doit être formaté.</param>
 /// <param name="conf">La <see cref="Config"/> à prendre en compte pour l'application du
 /// formatage.</param>
 protected override void SetChars(FormattedTextEl fte, Config conf)
 {
     if (fte == null)
     {
         logger.Error("fte est null.");
         throw new ArgumentNullException(nameof(fte));
     }
     rgeWork.SetRange(rgStart + nrArcs + fte.First,
                      rgStart + nrArcs + fte.Last + 1); // End doit pointer sur le caractère qui suit le range...
     if (fte.ToString() != empty || rgeWork.Text == empty)
     {
         ApplyCFToRange(fte.cf, rgeWork, conf);
     }
 }
 protected override void SetChars(FormattedTextEl fte, Config conf)
 {
     // Do nothing :-)
 }
Exemple #4
0
        /// <summary>
        /// Applique le formatage voulu au <see cref="FormattedTextEl"/> sur l'affichage.
        /// </summary>
        /// <param name="fte">Le <see cref="FormattedTextEl"/> qui doit être formaté.</param>
        /// <param name="conf">La <see cref="Config"/> à prendre en compte pour l'application du formatage.</param>
        protected override void SetChars(FormattedTextEl fte, Config conf)
        {
            TextRange theChars = txtRange.Characters(fte.First + 1, fte.Last - fte.First + 1);

            ApplyCFToRange(fte.cf, theChars, conf);
        }
Exemple #5
0
 protected override void SetChars(FormattedTextEl fte, Config conf)
 {
     logger.ConditionalTrace("SetChars");
     rtb.Select(fte.First, fte.Last - fte.First + 1);
     ApplyCFToSelection(fte.cf, conf);
 }