GetLinesCount

IParagraph.GetLinesCount Methode

Anzahl der Zeilen in einem Absatz ermitteln.

public int GetLinesCount()

Rückgabewert

Anzahl der Zeilen in einem Absatz

Beispiele

Beispiel:

[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() Beispiel";
    Console.WriteLine("Lines Count = {0}", para.GetLinesCount());
}

Siehe auch