iTextSharp.text.pdf.parser.TextRenderInfo.GetBaseline C# (CSharp) Метод

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

public GetBaseline ( ) : LineSegment
Результат LineSegment
        public LineSegment GetBaseline()
        {
            return GetUnscaledBaselineWithOffset(0 + gs.rise).TransformBy(textToUserSpaceTransformMatrix);
        }

Usage Example

 /// Captures text using a simplified algorithm for inserting hard returns and spaces
 ///             @param   renderInfo  render info
 public virtual void RenderText(TextRenderInfo renderInfo)
 {
     _blocks.Add(new TextBlock
     {
         Text = renderInfo.GetText(),
         TopLeft = renderInfo.GetBaseline().GetStartPoint(),
         BottomRight = renderInfo.GetBaseline().GetEndPoint()
     });
 }
All Usage Examples Of iTextSharp.text.pdf.parser.TextRenderInfo::GetBaseline