TextEffectCollection.IndexOf Method (TextEffect)
Searches for the specified TextEffect and returns the zero-based index of the first occurrence within the entire collection.
Assembly: PresentationCore (in PresentationCore.dll)
Return ValueType: System.Int32
The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1.
The collection is searched forward starting at the first key frame and ending at the last key frame.
This method determines equality by calling Object.Equals.
Available since 3.0