## SetProperty(*string, string*) {#setproperty}

Used to set a property value with default priority within this declaration block. Default priority is not "important" i.e. String.Empty

```csharp
public void SetProperty(string propertyName, string value)
```

| Parameter | Type | Description |
| --- | --- | --- |
| propertyName | String | Name of the property. |
| value | String | The value. |

### See Also

* interface [ICSSStyleDeclaration](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)

---

## SetProperty(*string, string, string*) {#setproperty_1}

Used to set a property value and priority within this declaration block.

```csharp
public void SetProperty(string propertyName, string value, string priority)
```

| Parameter | Type | Description |
| --- | --- | --- |
| propertyName | String | Name of the property. |
| value | String | The value. |
| priority | String | The priority. |

### See Also

* interface [ICSSStyleDeclaration](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)
