---
title: "IStyleSheet.Disabled"
url: "https://reference.aspose.com/html/net/aspose.html.dom.css/istylesheet/disabled/"
product: "Aspose.HTML for .NET API Reference"
description: "IStyleSheet Disabled property. false if the style sheet is applied to the document. true if it is not. Modifying this attribute may cause a new resolution of style for the document. A stylesheet only applies if both an appropriate medium definition is present and the disabled attribute is false. So if the media doesnt apply to the current user agent the disabled attribute is ignored"
---

## IStyleSheet.Disabled property

false if the style sheet is applied to the document. true if it is not. Modifying this attribute may cause a new resolution of style for the document. A stylesheet only applies if both an appropriate medium definition is present and the disabled attribute is false. So, if the media doesn't apply to the current user agent, the disabled attribute is ignored.

```csharp
public bool Disabled { get; set; }
```

### Property Value

`true` if disabled; otherwise, `false`.

### See Also

* interface [IStyleSheet](../)
* namespace [Aspose.Html.Dom.Css](../../../aspose.html.dom.css/)
* assembly [Aspose.HTML](../../../)
