1 Reply Latest reply on Jun 2, 2011 2:33 PM by John Hawkinson

    Find Textframe in c#

    xmlapi

      I use this method to find textframes in a page using c#:

       

      for(int i=1; i <= page.TextFrames.Count;i++)
      {

        if( page.TextFrames[i].Label = "test" )

           return page.TextFrames[i];

      }

       

      Is there anything faster than this?

        • 1. Re: Find Textframe in c#
          John Hawkinson Level 5
            if( page.TextFrames[i].Label = "test" )

          Unless you really want to assign "test" to the label of everything, this is probably your problem.

          But I don't know C#, so maybe I'm off-base here.

           

          Really, all these C# questions...I don't think that's helping you get help in this forum.

          Anyhow, the usual answer is .getElements(). Read up on it?