## Document.CreateAttribute method

指定された名前の Attr を作成します。

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

| パラメータ | タイプ | 説明 |
| --- | --- | --- |
| localName | String | 属性名。 |

### 戻り値

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

### 関連項目

* class [Attr](../../attr/)
* class [Document](../)
* 名前空間 [Aspose.Html.Dom](../../document/)
* 組み立て [Aspose.HTML](../../../)


