Exemplo n.º 1
0
 void ILineTracker.SetLineLength(DocumentLine line, int newTotalLength)
 {
     if (targetObject.Target is ILineTracker)
     {
         ILineTracker targetTracker = targetObject.Target as ILineTracker;
         targetTracker.SetLineLength(line, newTotalLength);
     }
     else
     {
         Deregister();
     }
 }
Exemplo n.º 2
0
        /// <inheritdoc/>
        public void SetLineLength(DocumentLine line, int newTotalLength)
        {
            ILineTracker targetTracker = targetObject.Target as ILineTracker;

            if (targetTracker != null)
            {
                targetTracker.SetLineLength(line, newTotalLength);
            }
            else
            {
                Deregister();
            }
        }