A proxy holding all required information about a certain type of Document object.

Constructors

ObjectProxy

#
Create a proxy from an instance.
public ObjectProxy(
instance,
plugin
)

ObjectProxy

#
Constructor for derived types. Why are you deriving from this class if you're not Thibault Schwartz?
protected ObjectProxy(
type,
Type underlying this proxy.
ioId,
Id of this type.
nomen,
Nomen of this type.
plugin
Plugin which owns this type.
)

Properties

Icon

Gets the icon associated with this object.
public virtual IIcon Icon { get; }
inherited fromGeneralProxy<T>

Id

Gets the ID for this object.
public Guid Id { get; }
inherited fromGeneralProxy<T>

Nomen

Gets the nomen describing this object.
public Nomen Nomen { get; }
inherited fromGeneralProxy<T>

Obsolete

Gets whether this proxy represents an obsolete (or otherwise hidden) object.
public bool Obsolete { get; }
inherited fromGeneralProxy<T>

Plugin

Gets the plugin to which is object belongs.
public Plugin Plugin { get; }
inherited fromGeneralProxy<T>

SearchableNomen

Gets the searchable version of the nomen.
public Nomen SearchableNomen { get; }
inherited fromGeneralProxy<T>

Type

Gets the Type of this object.
public Type Type { get; }
inherited fromGeneralProxy<T>

Methods

Draw

#
Try and render a preview of the object to a bitmap.
public Bitmap Draw(
scale = 1,
Zoom level for preview.
padding = 10,
Padding. Again, this is a suggestion and not guaranteed to be obeyed.
skin = null
Skin to lay out and draw with; null means the current skin.
)
Preview of object or null.

Draw

#
Try and render a preview of an existing object to a bitmap.
public static Bitmap Draw(
obj,
Object to draw.
scale = 1,
Zoom level for preview.
padding = 10,
Padding. Again, this is a suggestion and not guaranteed to be obeyed.
skin = null
Skin to lay out and draw with; null means the current skin.
)
Preview of object or null.

Emit

Emit a new instance of this object.
public virtual T Emit(
initCode = null
If provided, this initialisation string will be passed to the object. Not all objects support init codes, but if it doesn't, and you supply one anyway, the code will just be ignored.
)
inherited fromGeneralProxy<T>

ExtractIconFromInstance

#
protected override IIcon ExtractIconFromInstance()