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

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

Sets the text displacement relative to the baseline. Positive values rise the text, negative values lower the text.
It can be used to implement sub/basescript.
public SetTextRise ( float rise ) : Chunk
rise float the displacement in points
Результат Chunk
        public Chunk SetTextRise(float rise)
        {
            return SetAttribute(SUBSUPSCRIPT, rise);
        }

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::SetTextRise