## Document.GetElementsByClassName method

返回一个实时 NodeList 对象，其中包含文档中所有元素，这些元素具有参数中指定的所有类。 http://www.w3.org/TR/dom/

```csharp
public HTMLCollection GetElementsByClassName(string classNames)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| classNames | String | 包含表示类（类名）的一组无序的唯一空格分隔标记的字符串 |

### 返回值

的[`Element`](../../element/).

### 也可以看看

* class [HTMLCollection](../../../aspose.html.collections/htmlcollection/)
* class [Document](../)
* 命名空间 [Aspose.Html.Dom](../../document/)
* 部件 [Aspose.HTML](../../../)


