Ejemplo n.º 1
0
        public override TextCollapsingProperties CreateCollapsingProperties(TextCollapsingCreateInfo createInfo)
        {
            if (_isWordBased)
            {
                return(new TextTrailingWordEllipsis(_ellipsis, createInfo.Width, createInfo.TextRunProperties));
            }

            return(new TextTrailingCharacterEllipsis(_ellipsis, createInfo.Width, createInfo.TextRunProperties));
        }
Ejemplo n.º 2
0
 public override TextCollapsingProperties CreateCollapsingProperties(TextCollapsingCreateInfo createInfo)
 {
     throw new NotSupportedException();
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Creates properties that will be used for collapsing lines of text.
 /// </summary>
 /// <param name="createInfo">Contextual info about text that will be collapsed.</param>
 public abstract TextCollapsingProperties CreateCollapsingProperties(TextCollapsingCreateInfo createInfo);
Ejemplo n.º 4
0
 public override TextCollapsingProperties CreateCollapsingProperties(TextCollapsingCreateInfo createInfo)
 {
     return(new TextLeadingPrefixCharacterEllipsis(_ellipsis, _prefixLength, createInfo.Width, createInfo.TextRunProperties));
 }