---
title: "InputElement.GetColorValue"
url: "https://reference.aspose.com/html/net/aspose.html.forms/inputelement/getcolorvalue/"
product: "Aspose.HTML for .NET API Reference"
description: "InputElement GetColorValue method. This method is used to get the value as a color. This method is valid if only only type of the input element is color"
---

## InputElement.GetColorValue method

This method is used to get the value as a color. This method is valid if only only type of the input element is "color"

```csharp
public Color GetColorValue()
```

### Return Value

The color object.

### See Also

* class [InputElement](../)
* namespace [Aspose.Html.Forms](../../../aspose.html.forms/)
* assembly [Aspose.HTML](../../../)
