## XmlSchemaObjectCollection::IndexOf method


返回与指定的 [XmlSchemaObject](../../xmlschemaobject/) 对应的集合索引。

```cpp
int32_t System::Xml::Schema::XmlSchemaObjectCollection::IndexOf(const SharedPtr<XmlSchemaObject> &item)
```


| 参数 | 类型 | 描述 |
| --- | --- | --- |
| item | const SharedPtr\<XmlSchemaObject\>\& | 您想要返回其索引的 [XmlSchemaObject](../../xmlschemaobject/)。 |

### ReturnValue

与指定的 [XmlSchemaObject](../../xmlschemaobject/) 对应的索引。

## 另见

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [XmlSchemaObject](../../xmlschemaobject/)
* Class [XmlSchemaObjectCollection](../)
* Namespace [System::Xml::Schema](../../)
* Library [Aspose.Font for C++](../../../)
