Skip to content

GH_Grip

Public Class

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

Initializes a new instance of the GH_Grip class


Public Method

Initializes a new instance of the GH_Grip class


Public Method

Initializes a new instance of the GH_Grip class


Public Method

Initializes a new instance of the GH_Grip class


Properties

Name

Description


Public Property

Gets the colour to the left of this grip.


Public Property

Gets the colour to the right of this grip.


Public Property

Gets the Grip ID.


Public Property

Gets whether this grip is valid. A valid grip must have a non-empty Id and a non-NaN parameter.


Public Property

Gets or sets the numeric parameter of the grip.


Public Property

Gets or sets whether this grip is selected. Selection state is not (de)serialized.


Public Property

Gets whether the colour across this grip is smooth.


Methods

Name

Description


Public Method
Static Member

Public Method

Public Method

Create a new grip ID.


Public Method

Public Method