Click or drag to resize

DisplayColorGradient Class

Represents a gradient colour stop. Wraps the functionality of the ColorGradient type.
Inheritance Hierarchy
SystemObject
  Grasshopper.Kernel.TypesGH_GooColorGradient
    Grasshopper.Rhinoceros.DisplayDisplayColorGradient

Namespace:  Grasshopper.Rhinoceros.Display
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public sealed class DisplayColorGradient : GH_Goo<ColorGradient>, 
	IGH_PreviewData

The DisplayColorGradient type exposes the following members.

Constructors
  NameDescription
Public methodDisplayColorGradient
Blank constructor
Public methodDisplayColorGradient(ColorGradient)
Initializes a new instance of the DisplayColorGradient class
Public methodDisplayColorGradient(DisplayColorGradient)
Initializes a new instance of the DisplayColorGradient class
Top
Properties
  NameDescription
Public propertyClippingBox
Public propertyIsValid
Gets the validity of this instance.
(Overrides GH_GooTIsValid.)
Public propertyIsValidWhyNot
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
(Overrides GH_GooTIsValidWhyNot.)
Public propertyTypeDescription (Overrides GH_GooTTypeDescription.)
Public propertyTypeName (Overrides GH_GooTTypeName.)
Public propertyValue
Gets or sets the internal data.
(Inherited from GH_GooT.)
Top
Methods
  NameDescription
Public methodCastFrom (Overrides GH_GooTCastFrom(Object).)
Public methodCastToQ(Q)
Attempt a cast to type Q.
(Inherited from GH_GooT.)
Public methodCastToT(T) (Overrides GH_GooTCastToQ(Q).)
Public methodDrawViewportMeshes
Public methodDrawViewportWires
Public methodDuplicate (Overrides GH_GooTDuplicate.)
Public methodDuplicateColourGradient
Public methodEmitProxy
Create a new proxy for this instance. Return Null if this class does not support proxies.
(Inherited from GH_GooT.)
Public methodRead (Overrides GH_GooTRead(GH_IReader).)
Public methodScriptVariable
This function will be called when the local IGH_Goo instance disappears into a user Script. This would be an excellent place to cast your IGH_Goo type to a simple data type.
(Inherited from GH_GooT.)
Public methodToString (Overrides GH_GooTToString.)
Public methodWrite (Overrides GH_GooTWrite(GH_IWriter).)
Top
See Also