TextDecorationCollection.IndexOf(TextDecoration) TextDecorationCollection.IndexOf(TextDecoration) TextDecorationCollection.IndexOf(TextDecoration) TextDecorationCollection.IndexOf(TextDecoration) Method

定义

返回指定的 TextDecoration 对象在集合中的索引。Returns the index of the specified TextDecoration object within the collection.

public:
 virtual int IndexOf(System::Windows::TextDecoration ^ value);
public int IndexOf (System.Windows.TextDecoration value);
abstract member IndexOf : System.Windows.TextDecoration -> int
override this.IndexOf : System.Windows.TextDecoration -> int
Public Function IndexOf (value As TextDecoration) As Integer

参数

value
TextDecoration TextDecoration TextDecoration TextDecoration

要定位的 TextDecoration 对象。The TextDecoration object to locate.

返回

如果可找到,则为 value 的从零开始的索引;否则为 -1;The zero-based index of value, if found; otherwise -1;

实现

适用于