## IHTMLOptionsCollection indexer (1 of 2)

返回集合中的第 indexth 个项目。如果索引大于或等于列表中的节点数，则返回 null.

```csharp
public Element this[string name] { get; }
```

| 范围 | 描述 |
| --- | --- |
| name | 元素名称。 |

### 返回值

返回节点。

### 也可以看看

* class [Element](../../../aspose.html.dom/element/)
* interface [IHTMLOptionsCollection](../)
* 命名空间 [Aspose.Html](../../ihtmloptionscollection/)
* 部件 [Aspose.HTML](../../../)

---

## IHTMLOptionsCollection indexer (2 of 2)

方法返回集合中的第 indexth 个项目。如果索引大于或等于列表中的节点数，则返回 null. http://www.w3.org/TR/DOM-Level-2-HTML/html.html#HTMLOptionsCollection-namedItem

```csharp
public Element this[int index] { get; }
```

| 范围 | 描述 |
| --- | --- |
| index | 索引。 |

### 返回值

返回节点。

### 也可以看看

* class [Element](../../../aspose.html.dom/element/)
* interface [IHTMLOptionsCollection](../)
* 命名空间 [Aspose.Html](../../ihtmloptionscollection/)
* 部件 [Aspose.HTML](../../../)


