Erik,
Either way works ... I think it's just a matter of personal preference.
~~Bonnie
>>if (tr.Name == "StyleBlockName")
>
>C# strings works as objects. You should use the String.CompareTo() method to compare a string variable/property to another string. Like this:
>
>if (tr.Name.CompareTo("StyleBlockName") == 0)
>
>
>HTH,