GetLinesCount

Paragraph.GetLinesCount Methode

Anzahl der Zeilen in einem Absatz ermitteln.

public int GetLinesCount()  

Rückgabewert

Zeilenanzahl 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