GetLinesCount

IParagraph.GetLinesCount método

Obtener el número de líneas en un párrafo.

public int GetLinesCount()

Valor de Retorno

Número de líneas en un párrafo

Ejemplos

Ejemplo:

[C#]
using (Presentation pres = new Presentation())
{
    ISlide sld = pres.Slides[0];
    IAutoShape ashp = sld.Shapes.AddAutoShape(ShapeType.Rectangle, 150, 75, 150, 50);
    IParagraph para = ashp.TextFrame.Paragraphs[0];
    IPortion portion = para.Portions[0];
    portion.Text = "Aspose Paragraph GetLinesCount() Example";
    Console.WriteLine("Lines Count = {0}", para.GetLinesCount());
}

Ver También