# GH_CssProperty class

Namespace: [Grasshopper.GUI.HTML](https://developer.rhino3d.com/api/gh1/namespace/grasshopper.gui.html.md) · Assembly: [Grasshopper](https://developer.rhino3d.com/api/gh1/assembly/grasshopper.md)

```cs
public class GH_CssProperty : IComparable<GH_CssProperty>
```

Represents a single Property/Values pair in a CSS style.

## Constructors

- [GH_CssProperty](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/ctor.md): (3 overloads) Create a new CSS property.

## Properties

- [Name](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/name.md): Gets the property name.
- [ValueCount](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/valuecount.md): Gets the number of values stored in this property.
- [Values](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/values.md): Gets the local values as a readonly collection.

## Indexers

- [Value](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/item.md): Gets a specific value.

## Methods

- [AddValue](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/addvalue.md): Append a value to this property.
- [AddValues](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/addvalues.md): Append a collection of values to this property.
- [CompareTo](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/compareto.md): Compare this CSS property to another one.
- [FormatCss](https://developer.rhino3d.com/api/gh1/type/grasshopper.gui.html.gh-cssproperty/formatcss.md): Format the property as CSS code.
