IGH_IconObject

References
public interface IGH_IconObject : GH_ISerializable
Represents a procedural object inside an Icon image.

Properties

Image

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

ObjectID

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

Pivot

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

Size

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

Methods

Contains

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

Grips

#
Gets a list of Icon object grips.
A list of grips or null if this object does not support grips.

Read

This method is called whenever the instance is required to deserialize itself.
bool Read(
reader
Reader object to deserialize from.
)
inherited fromGH_ISerializable
True on success, false on failure.

RenderObject

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

Resize

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

Write

This method is called whenever the instance is required to serialize itself.
bool Write(
writer
Writer object to serialize with.
)
inherited fromGH_ISerializable
True on success, false on failure.