GH_Line.GH_LineProxy

GH_GooProxy<1>
Proxy description of GH_Line class. This class is used by the Generic Multivalue interfaces.

Constructors

GH_LineProxy

#
public GH_LineProxy(GH_Line nOwner)
nOwner (GH_Line)

Properties

Ax

#
[Description("X-component at start of line")] [Category("Start")] [DisplayName("X")] [RefreshProperties(RefreshProperties.All)] public string Ax { get; set; }

Ay

#
[Description("Y-component at start of line")] [Category("Start")] [DisplayName("Y")] [RefreshProperties(RefreshProperties.All)] public string Ay { get; set; }

Az

#
[Description("Z-component at start of line")] [Category("Start")] [DisplayName("Z")] [RefreshProperties(RefreshProperties.All)] public string Az { get; set; }

Bx

#
[Description("X-component at end of line")] [Category("End")] [DisplayName("X")] [RefreshProperties(RefreshProperties.All)] public string Bx { get; set; }

By

#
[Description("Y-component at end of line")] [Category("End")] [DisplayName("Y")] [RefreshProperties(RefreshProperties.All)] public string By { get; set; }

Bz

#
[Description("Z-component at end of line")] [Category("End")] [DisplayName("Z")] [RefreshProperties(RefreshProperties.All)] public string Bz { get; set; }

IsParsable

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

Length

#
[Description("Length of line segment")] [Category("Properties")] [RefreshProperties(RefreshProperties.All)] public string Length { get; set; }

Owner

[Browsable(false)] protected T Owner { get; }
inherited fromGH_GooProxy<T>

ProxyOwner

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

TypeDescription

[Description("Description of target data type")] [Category("Misc")] public string TypeDescription { get; }
inherited fromGH_GooProxy<T>

TypeName

[Description("Name of target data type")] [Category("Misc")] public string TypeName { get; }
inherited fromGH_GooProxy<T>

UserString

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

Valid

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

Methods

Construct

#
public override void Construct()

FormatInstance

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

FromString

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

MutateString

public virtual string MutateString(string in)
Munge a string to remove obvious errors on account of the user.
inherited fromGH_GooProxy<T>
in (string)
MutateString

NumberToString

protected string NumberToString(double number)
inherited fromGH_GooProxy<T>
number (double)

StringToNumber

protected double StringToNumber(string text)
inherited fromGH_GooProxy<T>
text (string)

ToString

public override string ToString()
inherited fromGH_GooProxy<T>
Object.ToString