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
)

ModelFont

#
public ModelFont(
familyName
)

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

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

TypeDescription

#
public override string TypeDescription { get; }

TypeName

#
public override string TypeName { get; }

Value

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

Methods

Cast

#
public static ModelFont Cast(
data
)

CastFrom

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

CastTo<Q>

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

Duplicate

#
public override IGH_Goo Duplicate()

EmitProxy

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

Equals

#
public bool Equals(
other
)

Equals

#
public override bool Equals(
other
)
Object.Equals

GetHashCode

#
public override int GetHashCode()

IsFamilyNameInstalled

#
public static bool IsFamilyNameInstalled(
familyName
)

Read

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

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.
public virtual object ScriptVariable()
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(
writer
)
GH_Goo<T>.Write

Convertors

OperationResultDescription
implicitFontModelFont
implicitstringModelFont