Constructors

GH_GooProxy

#
protected GH_GooProxy(
T
owner
)

Properties

IsParsable

#
Gets a value indicating whether or not the type can be instantiated from a String.
[Browsable(false)] public virtual bool IsParsable { get; }
IsParsable

Owner

#
[Browsable(false)] protected T Owner { get; }

ProxyOwner

#
Gets the piece of Grasshopper data that spawned this proxy.
[Browsable(false)] public IGH_Goo ProxyOwner { get; }
ProxyOwner

TypeDescription

#
[Description("Description of target data type")] [Category("Misc")] public string TypeDescription { get; }

TypeName

#
[Description("Name of target data type")] [Category("Misc")] public string TypeName { get; }

UserString

#
Gets or sets the user-defined string that describes this proxy. This only really makes sense if the Proxy is Parsable.
[Browsable(false)] public string UserString { get; set; }
The UserString value or the value of FormatInstance() if UserString has not been assigned.
UserString

Valid

#
Gets a value indicating whether this proxy represents valid data.
[Description("Validity of target data")] [Category("Misc")] public virtual bool Valid { get; }
Valid

Methods

Construct

#
Override this method to supply a custom UI during proxy construction.
public virtual void Construct()
Construct

FormatInstance

#
Returns a String description of the current value.
public virtual string FormatInstance()
Remarks: If the implementation IsParsable(), then this representation must be in parsable format.
FormatInstance

FromString

#
If IsParsable(), then attempts to convert the string to a generic type value
public virtual bool FromString(
in
The String to parse.
)
True on success, false on failure. This method should not throw exceptions.
FromString

MutateString

#
Munge a string to remove obvious errors on account of the user.
public virtual string MutateString()
MutateString

NumberToString

#
protected string NumberToString(
number
)

StringToNumber

#
protected double StringToNumber(
text
)

ToString

#
public override string ToString()
Object.ToString