# GoalWithValue class

Namespace: [Grasshopper2.Types.Constraints.Goals](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.types.constraints.goals.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public abstract class GoalWithValue : Goal
```

A goal with associated text label.

**Derived types:** [HeightGoal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.heightgoal.md), [LengthGoal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.lengthgoal.md), [LocationGoal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.locationgoal.md), [RadiusGoal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.radiusgoal.md), [WidthGoal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.widthgoal.md)

## Constructors

- [GoalWithValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goalwithvalue/ctor.md)

## Properties

- [Value](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goalwithvalue/value.md): Gets the value linked to this goal.

## Methods

- [ResolveCoordinate](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goalwithvalue/resolvecoordinate.md)
- [ResolveNumber](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goalwithvalue/resolvenumber.md)
- [WithValue](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goalwithvalue/withvalue.md): Return a goal of this same type with a new value.

## Inherited Members

- From [Goal](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal.md): [_edges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/edges.md), [EdgeCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/edgecount.md), [Icon](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/icon.md), [Id](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/id.md), [Nomen](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/nomen.md), [Apply](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/apply.md), [DependsOnId](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/dependsonid.md), [Edge](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/edge.md), [RemoveReferents](https://developer.rhino3d.com/api/gh2/type/grasshopper2.types.constraints.goals.goal/removereferents.md)
