---
title: "CSSPrimitiveValue.GetCounterValue"
url: "https://reference.aspose.com/svg/net/aspose.svg.dom.css/cssprimitivevalue/getcountervalue/"
product: "Aspose.SVG for .NET API Reference"
description: "CSSPrimitiveValue GetCounterValue method. This method is used to get the Counter value. If this CSS value doesnt contain a counter value a DOMException is raised. Modification to the corresponding style property can be achieved using the Counter interface"
---

## CSSPrimitiveValue.GetCounterValue method

This method is used to get the Counter value. If this CSS value doesn't contain a counter value, a DOMException is raised. Modification to the corresponding style property can be achieved using the Counter interface.

```csharp
public abstract Counter GetCounterValue()
```

### Return Value

Returns Counter value

### See Also

* class [Counter](../../counter/)
* class [CSSPrimitiveValue](../)
* namespace [Aspose.Svg.Dom.Css](../../../aspose.svg.dom.css/)
* assembly [Aspose.SVG](../../../)
