title: How to get text from slide in C# using Aspose
body: <p>i am getting all shapes in slides of ppt file now i want to get text from those shapes how can i do this</p>
  
  <p>here is my method where i am getting shapes of all slides in ppt file</p>
  
  <pre><code>public void Main(string[] args)
      {
          // The path to the documents directory.
          string dataDir = Path.GetFullPath(@"C:\Users\Vipin\Desktop\");
          //Load the desired the presentation
          Presentation pres = new Presentation(dataDir + "Android.ppt");
          using (Presentation prestg = new Presentation(dataDir + "Android.ppt"))
          {
  
  
              //Accessing a slide using its slide index
              int slideCount = prestg.Slides.Count();
              for (int i = 0; i &lt;= slideCount - 1; i++)
              {
                  ISlide slide = pres.Slides[i];
                  foreach (IShape shap in slide.Shapes)
                  {
                      int slideCountNumber = i + 1;
  
                      float shapeHeight = shap.Frame.Height;
                      float shapeWidth = shap.Frame.Width;
                      Debug.Write("slide Number: " + slideCountNumber + " shape width = " + shapeWidth + " shapeHeight = " + shapeHeight);
  
                  }
              }
  
          }
      }
  </code></pre>
  
  <p>now ho can i get the text from it</p>