GH_IconObject

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

Properties

Image

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

ObjectID

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

Pivot

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

Size

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

Methods

Contains

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

Grips

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

Read

#
public abstract bool Read(
reader
)
Read

RenderObject

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

Resize

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

Write

#
public abstract bool Write(
writer
)
Write