Windows apps
Collapse the table of content
Expand the table of content
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

TextDecorationCollection.IndexOf Method (TextDecoration)


Returns the index of the specified TextDecoration object within the collection.

Namespace:   System.Windows
Assembly:  PresentationCore (in PresentationCore.dll)

public int IndexOf(
	TextDecoration value


Type: System.Windows.TextDecoration

The TextDecoration object to locate.

Return Value

Type: System.Int32

The zero-based index of value, if found; otherwise -1;

.NET Framework
Available since 3.0
Return to top
© 2017 Microsoft