## ICSSStyleSheet.InsertRule method

Used to insert a new rule into the style sheet. The new rule now becomes part of the cascade.

```csharp
public long InsertRule(string rule, int index)
```

| Parameter | Type | Description |
| --- | --- | --- |
| rule | String | The style rule. |
| index | Int32 | The rule index. |

### Return Value

The inserted index

### See Also

* interface [ICSSStyleSheet](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)
