Aspose.Slides.Examples.CSharp.Presentations.Opening.GetRectangularCoordinatesofParagraph.Run C# (CSharp) Метод

Run() публичный статический Метод

public static Run ( ) : void
Результат void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_PresentationOpening();

            // Instantiate a Presentation object that represents a presentation file
            using (Presentation presentation = new Presentation(dataDir + "Shapes.pptx"))
            {
                IAutoShape shape = (IAutoShape)presentation.Slides[0].Shapes[0];
                    var textFrame = (ITextFrame)shape.TextFrame;
                    RectangleF rect = ((Paragraph)textFrame.Paragraphs[0]).GetRect();
            }
        } 
    }
GetRectangularCoordinatesofParagraph