iTextSharp.text.Chunk.SetHyphenation C# (CSharp) Метод

SetHyphenation() публичный Метод

sets the hyphenation engine to this Chunk.
public SetHyphenation ( IHyphenationEvent hyphenation ) : Chunk
hyphenation IHyphenationEvent the hyphenation engine
Результат Chunk
        public Chunk SetHyphenation(IHyphenationEvent hyphenation)
        {
            return SetAttribute(HYPHENATION, hyphenation);
        }

Usage Example

Пример #1
0
 public Chunk CreateChunk(String text, ChainedProperties props) {
     Font font = GetFont(props);
     float size = font.Size;
     size /= 2;
     Chunk ck = new Chunk(text, font);
     if (props.HasProperty("sub"))
         ck.SetTextRise(-size);
     else if (props.HasProperty("sup"))
         ck.SetTextRise(size);
     ck.SetHyphenation(GetHyphenation(props));
     return ck;
 }
All Usage Examples Of iTextSharp.text.Chunk::SetHyphenation