views:

9

answers:

0

What would be the easiet (and possibly fast) way to get a BlockCollection object (System.Windows.Documents namespace) which contains a given Block-type object?

I could not find any direct way of doing this using what's available on Block class.

public static BlockCollection FindContainingCollection(Block block)
{
   // ???        
}