GH_IconObject

References
public abstract class GH_IconObject : IGH_IconObject
Abstract implementation of IGH_IconObject.

Properties

Image

#
public Bitmap Image { get; }
Gets the object image. Do not store pointers to this image as it might be disposed at any time.
Image

ObjectID

#
public abstract Guid ObjectID { get; }
Gets the icon object ID.
ObjectID

Pivot

#
public virtual Point Pivot { get; set; }
Gets or sets the pivot point for this object.
Pivot

Size

#
public Size Size { get; set; }
Gets or sets the size of the object container. Setting the Size does not adjust the geometry, call Resize() instead.
Size

Methods

Contains

#
public abstract bool Contains(PointF pt)
Tests a floating point coordinate for shape inclusion.
pt (PointF)Point to test for inclusion.
True if pt is inside the object boundary.
Contains

Grips

#
public virtual List<IGH_IconObjectGrip> Grips()
Gets a list of Icon object grips.
A list of grips or null if this object does not support grips.
Grips

Read

#
public abstract bool Read(GH_IReader reader)
reader (GH_IReader)
Read

RenderObject

#
public abstract void RenderObject(Graphics G)
Draw this object inside the specified graphics surface.
G (Graphics)Graphics object to draw with.
RenderObject

Resize

#
public virtual void Resize(Size newSize)
Set a new size for this object and resize the geometry to adapt to the new container.
newSize (Size)New size for this object.
Resize

Write

#
public abstract bool Write(GH_IWriter writer)
writer (GH_IWriter)
Write