IGH_SketchElement

References
Base interface for all Sketch elements

Properties

BoundingBox

#
RectangleF BoundingBox { get; }

Category

Gets or sets the Category in which this object belongs. If HasCategory() returns false, this field has no meaning.
string Category { get; set; }
inherited fromIGH_InstanceDescription

Description

Gets or sets the description of the object. This field typically remains fixed during the lifetime of an object.
string Description { get; set; }
inherited fromIGH_InstanceDescription

GraphicsPath

#
GraphicsPath GraphicsPath { get; }

HasCategory

Gets whether or not the Category field has been set.
bool HasCategory { get; }
inherited fromIGH_InstanceDescription

HasSubCategory

Gets whether or not the SubCategory field has been set.
bool HasSubCategory { get; }
inherited fromIGH_InstanceDescription

Icon_24x24

#
Image Icon_24x24 { get; }

InstanceDescription

Gets a description of the current state of the object. This field is usually the same as the Description() field, but it might be variable when overridden.
string InstanceDescription { get; }
inherited fromIGH_InstanceDescription

InstanceGuid

Gets the ID of this runtime instance.
Guid InstanceGuid { get; }
inherited fromIGH_InstanceDescription

Keywords

Gets a list of additional keywords that describe the object. Typically this list is empty but you can override this property to aid in object searches.
IEnumerable<string> Keywords { get; }
inherited fromIGH_InstanceDescription

Name

Gets or sets the name of the object. This field typically remains fixed during the lifetime of an object.
string Name { get; set; }
inherited fromIGH_InstanceDescription

NickName

Gets or sets the nickname of the object. This field can be changed by the user.
string NickName { get; set; }
inherited fromIGH_InstanceDescription

SubCategory

Gets or sets the SubCategory in which this object belongs. If HasSubCategory() returns false, this field has no meaning.
string SubCategory { get; set; }
inherited fromIGH_InstanceDescription

Methods

IsPickPoint

#
bool IsPickPoint(
PointF
pt
)

IsPickPoint

#
bool IsPickPoint(
box,
bCrossingBox
)

NewInstanceGuid

Generate a new random instance GUID
void NewInstanceGuid()
inherited fromIGH_InstanceDescription

NewInstanceGuid

Set the instance ID to be a specific GUID. This is very dangerous, only use this function if you're 6"4' and called David.
void NewInstanceGuid(
UUID
)
inherited fromIGH_InstanceDescription

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.

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.