Re: Walking the styles
- From: Brendan Murphy <bmurphy@xxxxxxxxxxxxxxxxxxxxx>
- To: ftcdev@xxxxxxxxxxxxx
- Date: Mon, 2 Feb 2009 08:51:50 -0600
Ryan Dary wrote:
> I am now wanting to iterate through the paragraphs and then iterate
> through all the paragraphs formatting runs. Here is the pseudo code:
>
> for each p as paragraph in ftcdocument.paragraphs
>
> for each r as styleRun in p.styleRuns
>
> doSomethingWithEachStyleRun()
>
> next
>
> next
>
> What would the real code look like to do this?
Look at the FTDocument.selectionBold method for an example
of iterating through the style runs.
FTC Website:
http://www.truenorthsoftware.com/FormattedTextControl/FormattedTextControl.html
Set List Options (digest and vacation modes): www.freelists.org/list/ftcdev
List Archive: www.freelists.org/archives/ftcdev
Unsubscribe: Send email to ftcdev-request@xxxxxxxxxxxxx with "unsubscribe" in
the subject field.
Other related posts: