GH_Grip
Represents a grip in a gradient. A grip defines both where and how the colour of a gradient changes.
Inheritance Hierarchy
System.Object
Grasshopper.GUI.Gradient.GH_Grip
Namespace: Grasshopper.GUI.Gradient
Assembly: Grasshopper (in Grasshopper.dll)
Syntax
public class GH_Grip : IComparable<GH_Grip>, GH_ISerializable
The GH_Grip type exposes the following members.
Constructors
Name
Description
Public Method
GH_Grip.
Initializes a new instance of the GH_Grip class
Public Method
GH_Grip(GH_Grip)
Initializes a new instance of the GH_Grip class
Public Method
GH_Grip(Double, Color)
Initializes a new instance of the GH_Grip class
Public Method
GH_Grip(Double, Color, Color)
Initializes a new instance of the GH_Grip class
Properties
Name
Description
Public Property
ColourLeft
Gets the colour to the left of this grip.
Public Property
ColourRight
Gets the colour to the right of this grip.
Public Property
GripId
Gets the Grip ID.
Public Property
IsValid
Gets whether this grip is valid. A valid grip must have a non-empty Id and a non-NaN parameter.
Public Property
Parameter
Gets or sets the numeric parameter of the grip.
Public Property
Selected
Gets or sets whether this grip is selected. Selection state is not (de)serialized.
Public Property
Type
Gets whether the colour across this grip is smooth.
Methods
Name
Description
Public Method
Static Member
Blend
Public Method
CompareTo
Public Method
MutateId
Create a new grip ID.
Public Method
Read
Public Method
Write