## Document.CreateAttribute method

创建给定名称的属性。

```csharp
public Attr CreateAttribute(string localName)
```

| 范围 | 类型 | 描述 |
| --- | --- | --- |
| localName | String | 属性名称。 |

### 返回值

的[`Attr`](../../attr/).

### 也可以看看

* class [Attr](../../attr/)
* class [Document](../)
* 命名空间 [Aspose.Html.Dom](../../document/)
* 部件 [Aspose.HTML](../../../)


