public sealed class ModelFont : GH_Goo<Font>, IEquatable<ModelFont>, IGH_Goo
Represents a typography font. Wraps the functionality of the Font type.

Constructors

ModelFont

#
public ModelFont()

ModelFont

#
public ModelFont(Font font)
font (Font)

ModelFont

#
public ModelFont(string familyName)
familyName (string)

Fields

m_value

protected T m_value
inherited fromGH_Goo<T>

Properties

DisplayName

#
[Browsable(false)] public string DisplayName { get; }

FamilyName

#
public string FamilyName { get; }

InstalledFamilies

#
public static IReadOnlyList<string> InstalledFamilies { get; }

InstalledFonts

#
public static IReadOnlyList<ModelFont> InstalledFonts { get; }

IsInstalled

#
public bool IsInstalled { get; }

IsValid

#
public override bool IsValid { get; }

IsValidWhyNot

public virtual string IsValidWhyNot { get; }
Gets a string describing the state of "invalidness". If the instance is valid, then this property should return Nothing or String.Empty.
inherited fromGH_Goo<T>
IsValidWhyNot

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

public virtual T Value { get; set; }
Gets or sets the internal data.
inherited fromGH_Goo<T>

Methods

Cast

#
public static ModelFont Cast(object data)
data (object)

CastFrom

public virtual bool CastFrom(object source)
Attempt a cast from generic data.
inherited fromGH_Goo<T>
Remarks: If False, the contents of this instance are not to be trusted.
source (object)Reference to data that should be cast.
True on success, false on failure.
CastFrom

CastTo<Q>

public virtual bool CastTo<Q>(ref Q target)
Attempt a cast to type Q.
inherited fromGH_Goo<T>
Remarks: If false, the target instance contents are not guaranteed to be valid.
target (ref Q)Pointer to target of cast.
True on success, false on failure.
CastTo

Duplicate

#
public override IGH_Goo Duplicate()

EmitProxy

public virtual IGH_GooProxy EmitProxy()
Create a new proxy for this instance. Return Null if this class does not support proxies.
inherited fromGH_Goo<T>
EmitProxy

Equals

#
public bool Equals(ModelFont other)
other (ModelFont)

Equals

#
public override bool Equals(object other)
other (object)
Object.Equals

GetHashCode

#
public override int GetHashCode()

IsFamilyNameInstalled

#
public static bool IsFamilyNameInstalled(string familyName)
familyName (string)

Read

#
public override bool Read(GH_IReader reader)
reader (GH_IReader)
GH_Goo<T>.Read

ScriptVariable

public virtual object ScriptVariable()
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 fromGH_Goo<T>
The default implementation of this function returns the Value instance.
ScriptVariable
Explicit

IGH_Goo.TooltipString

#
string TooltipString()
ToString

ToString

#
public override string ToString()

Write

#
public override bool Write(GH_IWriter writer)
writer (GH_IWriter)
GH_Goo<T>.Write

Convertors

OperationResultDescription
implicitFontModelFont
implicitstringModelFont