Properties
Archive
Gets a pointer to the archive that owns the Root of the tree this chunk belongs to.
ArchiveLocation
Gets a string representing the URI with which the archive is associated. The location may be a null string.
ChunkCount
Gets the number of child chunks contained in this chunk. The set of all child chunks is referred to as a 'litter'.
Chunks
Gets a pointer to the internal list of child chunks. Do not access this list unless you know what you are doing.
Index
Gets the index of this chunk. The index is set by the owner of this chunk. Indices smaller than zero imply no index has been set. The combination of name+index is always unique among a set of chunks in the same litter.
Items
Gets a pointer to the internal list of items. Do not access this list unless you know what you are doing.
Name
Gets the name of this chunk. The name is set by the owner of this chunk. Names must be at least 1 character long. The combination of name+index is always unique among a set of chunks in a single litter.
Methods
AddComment
#Adds a text comment to this chunk. Comments are serialized only if the output flavour is a human readable format. Comments are never deserialized, they are purely for the benefit of the humans reading the file data.
void AddComment()
comment_text
The content of the comment, text might be altered if it contains invalid characters for a chosen format flavour.
Exceptions:
| ArgumentNullException | Thrown if the content text is either null or empty. |
AddMessage
Log a new message with the top-level archive. Messages are collected during read/write operations, and can be displayed to the user upon completion using GH_Archive.ShowMessageLog().
CreateChunk
#Create a new child chunk with the specified name and index qualifier. If another chunk already exists with similar properties, an exception will be thrown.
Exceptions:
| ArgumentException | Thrown if the name+index coordinte is already occupied by another chunk. |
CreateChunk
#Create a new child chunk with the specified name but without an index qualifier. If another chunk already exists with similar properties, an exception will be thrown.
Exceptions:
| ArgumentException | Thrown if the name coordinte is already occupied by another chunk. |
Read
Called when an object is required to deserialize itself.
Read
Called when an object is required to deserialize itself.
RemoveChunk
#Remove the specified chunk from the litter.
Returns: True is chunk was removed, false if chunk is not part of this litter.
Exceptions:
| ArgumentNullException | Thrown if chunk is a null reference. |
RemoveChunk
#Remove the first chunk with a matching name and index. Only chunks with index qualifiers are considered. Name comparisons are not case-sensitive.
Returns: True is chunk was removed, false if no matching chunk could be found.
RemoveChunk
#Remove the first chunk with a matching name. Only chunks without index qualifiers are considered. Name comparisons are not case-sensitive.
Returns: True is chunk was removed, false if no matching chunk could be found.
SetBoolean
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetBoolean
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetBoundingBox
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
void SetBoundingBox()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetBoundingBox
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetBoundingBox()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetByte
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetByte
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetByteArray
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetByteArray
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDate
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDate
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDecimal
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDecimal
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDouble
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDouble
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDoubleArray
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDoubleArray
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingBitmap
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingBitmap
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingColor
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingColor
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingPoint
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingPoint
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingPointF
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingPointF
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingRectangle
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingRectangle
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
void SetDrawingRectangle()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingRectangleF
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetDrawingRectangleF()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingRectangleF
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
void SetDrawingRectangleF()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingSize
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingSize
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetDrawingSizeF
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetDrawingSizeF
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetGuid
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetGuid
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetInt32
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetInt32
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetInt64
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetInt64
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetInterval1D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
void SetInterval1D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetInterval1D
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetInterval1D()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetInterval2D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
void SetInterval2D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetInterval2D
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetInterval2D()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetLine
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetLine
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetPath
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetPath
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetPlane
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetPlane
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetPoint2D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetPoint2D
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetPoint2D()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetPoint3D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetPoint3D
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetPoint3D()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetPoint4D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetPoint4D
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetPoint4D()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetSingle
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetSingle
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetString
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetString
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetVersion
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
SetVersion
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
void SetVersion()
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetVersion
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
SetVersion
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Write
Called when an object is required to serialize itself.
Write
Called when an object is required to serialize itself.