GH_Chunk

References
Full implementation of GH_IChunk, GH_IReader, GH_IWriter, GH_IBinarySupport and GH_IXmlSupport. Instances of this class are usually disguised as one of the interfaces it implements.

Constructors

GH_Chunk

#
Blank constructor. You typically do not need to create your own Chunks. The GH_Archive class will create top-level chunks and existing chunks can create child chunks.
protected GH_Chunk()

GH_Chunk

#
Constructor. You typically do not need to create your own Chunks. The GH_Archive class will create top-level chunks and existing chunks can create child chunks.
protected GH_Chunk(
chunk_archive,
Owner archive.
chunk_name,
Name of this chunk.
chunk_index
Index of this chunk.
)

GH_Chunk

#
Constructor. You typically do not need to create your own Chunks. The GH_Archive class will create top-level chunks and existing chunks can create child chunks.
protected GH_Chunk(
chunk_archive,
Owner archive.
chunk_name
Name of this chunk.
)

GH_Chunk

#
Constructor. You typically do not need to create your own Chunks. The GH_Archive class will create top-level chunks and existing chunks can create child chunks.
protected GH_Chunk(
chunk_archive
Owner archive.
)

Fields

m_archive

#
Pointer to the archive that owns the Root of the tree this chunk belongs to.
protected GH_Archive m_archive

m_chunks

#
Dictionary of sub-chunks contained within this chunk.
protected GH_Chunk.ChunkKeyedCollection m_chunks

m_comments

#
List of text comments. This list is automatically instantiated once the first comment is added.
protected List<string> m_comments

m_index

#
Index of this chunk. This field is set only once, during construction. A negative index indicates no index qualifier has been set.
protected int m_index

m_items

#
The list of nodes contained within this chunk.
protected SortedDictionary<ID, GH_Item> m_items

m_name

#
Name of this chunk. This field is set only once, during construction.
protected string m_name

name_comp

#
Comparison flag to use when comparing names.
protected static StringComparison name_comp

Properties

Archive

#
Gets a pointer to the archive that owns the Root of the tree this chunk belongs to.
public GH_Archive Archive { get; }
Archive

ArchiveLocation

#
Gets a string representing the URI with which the archive is associated. The location may be a null string.
public string ArchiveLocation { get; }
ArchiveLocation

ChunkCount

#
Gets the number of child chunks contained in this chunk. The set of all child chunks is referred to as a 'litter'.
public int ChunkCount { get; }
ChunkCount

Chunks

#
Gets a pointer to the internal list of child chunks. Do not access this list unless you know what you are doing.
public List<GH_IChunk> Chunks { get; }
Chunks

HasComments

#
Gets a value that indicates whether or not comments have been stored in this chunk.
public bool HasComments { get; }

HasIndex

#
Gets the index existence implication. The item is considered to have an index qualifier if the index value is larger than or equal to zero.
public bool HasIndex { get; }

HasName

#
Gets the name validity of this item. The item is considered to have an invalid name if string.IsNullOrEmpty(name)
public bool HasName { get; }

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.
public int Index { get; }
Index

ItemCount

#
Gets the number of items contained in this chunk.
public int ItemCount { get; }
ItemCount

Items

#
Gets a pointer to the internal list of items. Do not access this list unless you know what you are doing.
public List<GH_Item> Items { get; }
Items

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.
public string Name { get; }
Name

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.
public void AddComment(
comment_text
The content of the comment, text might be altered if it contains invalid characters for a chosen format flavour.
)
ArgumentNullExceptionThrown if the content text is either null or empty.
AddComment

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().
public void AddMessage(
m,
Message text.
t
Message type.
)
ArgumentNullExceptionThrown if message text is null or empty.
AddMessage

ChunkExists

#
Checks whether a chunk with the specified name and index exists in the litter. Only chunks with index qualifiers are considered. Name comparisons are not case-sensitive.
public bool ChunkExists(
name,
Name of chunk to test for.
index
Index of chunk to test for. If less than zero, ChunkExists(string name) is called instead.
)
True if a chunk with the specified name and index exists, otherwise false.
ChunkExists

ChunkExists

#
Checks whether a chunk with the specified name exists in the litter. Only chunks without index qualifiers are considered. Name comparisons are not case-sensitive.
public bool ChunkExists(
name
Name of chunk to test for.
)
True if a chunk with the specified name exists, otherwise false.
ChunkExists

CopyValuesFromChunk

#
Copy all values and sub-chunks from another chunk.
public void CopyValuesFromChunk(
other
)

CopyValuesToChunk

#
Copy all values and sub-chunks in this chunk to another chunk which does not point to the same archive.
public GH_Chunk CopyValuesToChunk()

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.
public GH_IWriter CreateChunk(
chunk_name,
Name of new child.
chunk_index
Index of new child.
)
The newly created child chunk.
ArgumentExceptionThrown if the name+index coordinte is already occupied by another chunk.
CreateChunk

CreateChunk

#
Create a new child chunk with the specified name and without an index qualifier. If another chunk already exists with similar properties, an exception will be thrown.
public GH_IWriter CreateChunk(
chunk_name
Name of new child.
)
The newly created child chunk.
ArgumentExceptionThrown if the name+index coordinte is already occupied by another chunk.
CreateChunk

FindChunk

#
Finds the first chunk in the list that matches the given name and index. Only chunks with index qualifiers are considered.
public GH_IReader FindChunk(
name,
Name of chunk to search for.
index
Index of chunk to search for. If less than zero, FindChunk(string chunk_name) is called instead.
)
The child chunk that matches the given name and index, or null of no matching chunk could be found.
FindChunk

FindChunk

#
Finds the first chunk in the litter that matches the given name. Only chunks without index qualifiers are considered.
public GH_IReader FindChunk(
name
Name of chunk to search for.
)
The child chunk that matches the given name, or null of no matching chunk could be found.
FindChunk

FindItem

#
Finds the first item that matches the given name and index. Only items with index qualifiers are considered. Name comparisons are not case-sensitive.
public GH_Item FindItem(
name,
Name of item to search for.
index
Index of item to search for. If less than zero, then FindItem(string name) is called instead.
)
The item that matches the given name and index, or null of no matching item could be found.
FindItem

FindItem

#
Finds the first item that matches the given name. Only items without index qualifiers are considered. Name comparisons are not case-sensitive.
public GH_Item FindItem(
name
Name of item to search for.
)
The item that matches the given name, or null of no matching item could be found.
FindItem

GetBoolean

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool GetBoolean(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetBoolean

GetBoolean

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool GetBoolean(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetBoolean

GetBoundingBox

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_BoundingBox GetBoundingBox(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetBoundingBox

GetBoundingBox

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_BoundingBox GetBoundingBox(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetBoundingBox

GetByte

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public byte GetByte(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetByte

GetByte

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public byte GetByte(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetByte

GetByteArray

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public byte[] GetByteArray(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetByteArray

GetByteArray

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public byte[] GetByteArray(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetByteArray

GetDate

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public DateTime GetDate(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDate

GetDate

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public DateTime GetDate(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDate

GetDecimal

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public decimal GetDecimal(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDecimal

GetDecimal

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public decimal GetDecimal(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDecimal

GetDouble

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public double GetDouble(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDouble

GetDouble

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public double GetDouble(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDouble

GetDoubleArray

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public double[] GetDoubleArray(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDoubleArray

GetDoubleArray

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public double[] GetDoubleArray(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDoubleArray

GetDrawingBitmap

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public Bitmap GetDrawingBitmap(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDrawingBitmap

GetDrawingBitmap

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public Bitmap GetDrawingBitmap(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDrawingBitmap

GetDrawingColor

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public Color GetDrawingColor(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDrawingColor

GetDrawingColor

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public Color GetDrawingColor(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDrawingColor

GetDrawingPoint

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public Point GetDrawingPoint(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDrawingPoint

GetDrawingPoint

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public Point GetDrawingPoint(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDrawingPoint

GetDrawingPointF

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public PointF GetDrawingPointF(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDrawingPointF

GetDrawingPointF

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public PointF GetDrawingPointF(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDrawingPointF

GetDrawingRectangle

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public Rectangle GetDrawingRectangle(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.

GetDrawingRectangle

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public Rectangle GetDrawingRectangle(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.

GetDrawingRectangleF

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public RectangleF GetDrawingRectangleF(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.

GetDrawingRectangleF

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public RectangleF GetDrawingRectangleF(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.

GetDrawingSize

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public Size GetDrawingSize(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDrawingSize

GetDrawingSize

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public Size GetDrawingSize(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDrawingSize

GetDrawingSizeF

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public SizeF GetDrawingSizeF(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetDrawingSizeF

GetDrawingSizeF

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public SizeF GetDrawingSizeF(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetDrawingSizeF

GetGuid

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public Guid GetGuid(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetGuid

GetGuid

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public Guid GetGuid(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetGuid

GetInt32

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public int GetInt32(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetInt32

GetInt32

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public int GetInt32(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetInt32

GetInt64

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public long GetInt64(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetInt64

GetInt64

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public long GetInt64(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetInt64

GetInterval1D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Interval1D GetInterval1D(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetInterval1D

GetInterval1D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Interval1D GetInterval1D(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetInterval1D

GetInterval2D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Interval2D GetInterval2D(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetInterval2D

GetInterval2D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Interval2D GetInterval2D(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetInterval2D

GetLine

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Line GetLine(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetLine

GetLine

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Line GetLine(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetLine

GetPath

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public string[] GetPath(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
basePath
Base path for relative path resolution.
)
An array of path strings. If the resolved relative path is different from the stored absolute path, an array of two strings will be returned [absolute, relative].
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetPath

GetPath

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public string[] GetPath(
item_name,
Name of item to retrieve.
basePath
Base path for relative path resolution.
)
An array of path strings. If the resolved relative path is different from the stored absolute path, an array of two strings will be returned [absolute, relative].
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetPath

GetPlane

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Plane GetPlane(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetPlane

GetPlane

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Plane GetPlane(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetPlane

GetPoint2D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Point2D GetPoint2D(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetPoint2D

GetPoint2D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Point2D GetPoint2D(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetPoint2D

GetPoint3D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Point3D GetPoint3D(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetPoint3D

GetPoint3D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Point3D GetPoint3D(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetPoint3D

GetPoint4D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Point4D GetPoint4D(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetPoint4D

GetPoint4D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Point4D GetPoint4D(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetPoint4D

GetSingle

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public float GetSingle(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetSingle

GetSingle

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public float GetSingle(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetSingle

GetString

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public string GetString(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetString

GetString

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public string GetString(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetString

GetVersion

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public GH_Version GetVersion(
item_name,
Name of item to retrieve.
item_index
Index of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name and index does not exist.
GetVersion

GetVersion

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public GH_Version GetVersion(
item_name
Name of item to retrieve.
)
The inner value of the item.
OverflowExceptionThrown if the type conversion fails.
InvalidCastExceptionThrown if the type conversion is invalid.
NullReferenceExceptionThrown if the item with the specified name does not exist.
GetVersion

InstantiateRoot

#
Construct a new instance of GH_Chunk which acts as a Root node. If you must create a chunk from scratch, use this static method to create one.
public static GH_Chunk InstantiateRoot(
owner
The archive which owns this chunk.
)
ArgumentNullExceptionThrown when the owner is a null reference.

ItemExists

#
Checks whether an item with the specified name and index exists. Only items with index qualifiers are considered. Name comparisons are not case-sensitive.
public bool ItemExists(
name,
Name of item to test for.
index
Index of item to test for. If index is less than zero, then ItemExists(string name) is called instead.
)
True if an item with the specified name and index exists, otherwise false.
ItemExists

ItemExists

#
Gets the occupancy for a specific item name. Only items without index qualifiers are considered.
public bool ItemExists(
name
Name of item to check for.
)
True if an item with a similar name already exists, false if not.
ItemExists

Read

#
Read this chunk and all child chunks from a binary stream.
public void Read(
reader
The Binary reader to use, cannot be null.
)
Read

Read

#
Read this chunk and all child chunks from an Xml node.
public void Read(
node
The Xml node to deserialize from, cannot be null.
)
Read

RemoveChunk

#
Remove the specified chunk from the litter.
public bool RemoveChunk(
chunk
Chunk to remove.
)
True is chunk was removed, false if chunk is not part of this litter.
ArgumentNullExceptionThrown if chunk is a null reference.
RemoveChunk

RemoveChunk

#
Remove the first chunk with a matching name and index. Only chunks with index qualifiers are considered. Name comparisons are not case-sensitive.
public bool RemoveChunk(
chunk_name,
Name of chunk to remove.
chunk_index
Index of chunk to remove.
)
True is chunk was removed, false if no matching chunk could be found.
RemoveChunk

RemoveChunk

#
Remove the first chunk with a matching name. Only chunks without index qualifiers are considered. Name comparisons are not case-sensitive.
public bool RemoveChunk(
chunk_name
Name of chunk to remove.
)
True is chunk was removed, false if no matching chunk could be found.
RemoveChunk

RemoveItem

#
Remove an indexed item from this chunk.
public bool RemoveItem(
itemName,
Name of item.
itemIndex
Index of item.
)
True on success, false on failure.
RemoveItem

RemoveItem

#
Remove an unindexed item from this chunk.
public bool RemoveItem(
itemName
Name of item.
)
True on success, false on failure.
RemoveItem

SetBoolean

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetBoolean(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetBoolean

SetBoolean

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetBoolean(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetBoolean

SetBoundingBox

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetBoundingBox(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetBoundingBox

SetBoundingBox

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetBoundingBox(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetBoundingBox

SetByte

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetByte(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetByte

SetByte

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetByte(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetByte

SetByteArray

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetByteArray(
item_name,
Name of item to add.
byte[]
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetByteArray

SetByteArray

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetByteArray(
item_name,
Name of item to add.
item_index,
Index of item to add.
byte[]
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetByteArray

SetDate

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDate(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDate

SetDate

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDate(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDate

SetDecimal

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDecimal(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDecimal

SetDecimal

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDecimal(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDecimal

SetDouble

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDouble(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDouble

SetDouble

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDouble(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDouble

SetDoubleArray

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDoubleArray(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDoubleArray

SetDoubleArray

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDoubleArray(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDoubleArray

SetDrawingBitmap

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingBitmap(
item_name,
Name of item to add.
Bitmap
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingBitmap

SetDrawingBitmap

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingBitmap(
item_name,
Name of item to add.
item_index,
Index of item to add.
Bitmap
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingBitmap

SetDrawingColor

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingColor(
item_name,
Name of item to add.
Color
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingColor

SetDrawingColor

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDrawingColor(
item_name,
Name of item to add.
item_index,
Index of item to add.
Color
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDrawingColor

SetDrawingPoint

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDrawingPoint(
item_name,
Name of item to add.
item_index,
Index of item to add.
Point
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDrawingPoint

SetDrawingPoint

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingPoint(
item_name,
Name of item to add.
Point
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingPoint

SetDrawingPointF

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDrawingPointF(
item_name,
Name of item to add.
item_index,
Index of item to add.
PointF
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDrawingPointF

SetDrawingPointF

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingPointF(
item_name,
Name of item to add.
PointF
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingPointF

SetDrawingRectangle

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDrawingRectangle(
item_name,
Name of item to add.
item_index,
Index of item to add.
Rectangle
item_value
Value of item to add.
)
InvalidOperationExceptionThrown 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.
public void SetDrawingRectangle(
item_name,
Name of item to add.
Rectangle
item_value
Value of item to add.
)
InvalidOperationExceptionThrown 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.
public void SetDrawingRectangleF(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown 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.
public void SetDrawingRectangleF(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown 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.
public void SetDrawingSize(
item_name,
Name of item to add.
item_index,
Index of item to add.
Size
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDrawingSize

SetDrawingSize

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingSize(
item_name,
Name of item to add.
Size
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingSize

SetDrawingSizeF

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetDrawingSizeF(
item_name,
Name of item to add.
item_index,
Index of item to add.
SizeF
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetDrawingSizeF

SetDrawingSizeF

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingSizeF(
item_name,
Name of item to add.
SizeF
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetDrawingSizeF

SetGuid

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetGuid(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetGuid

SetGuid

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetGuid(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetGuid

SetInt32

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetInt32(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetInt32

SetInt32

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetInt32(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetInt32

SetInt64

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetInt64(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetInt64

SetInt64

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetInt64(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetInt64

SetInterval1D

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetInterval1D(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetInterval1D

SetInterval1D

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetInterval1D(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetInterval1D

SetInterval2D

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetInterval2D(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetInterval2D

SetInterval2D

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetInterval2D(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetInterval2D

SetLine

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetLine(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetLine

SetLine

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetLine(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetLine

SetPath

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetPath(
item_name,
Name of item to add.
item_index,
Index of item to add.
absolutePath,
Absolute path to store.
basePath
Base path. This will be used to also store a relative path.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetPath

SetPath

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetPath(
item_name,
Name of item to add.
absolutePath,
Absolute path to store.
basePath
Base path. This will be used to also store a relative path.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetPath

SetPlane

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPlane(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetPlane

SetPlane

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetPlane(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetPlane

SetPoint2D

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPoint2D(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetPoint2D

SetPoint2D

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetPoint2D(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetPoint2D

SetPoint3D

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPoint3D(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetPoint3D

SetPoint3D

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetPoint3D(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetPoint3D

SetPoint4D

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPoint4D(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetPoint4D

SetPoint4D

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetPoint4D(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetPoint4D

SetSingle

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetSingle(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetSingle

SetSingle

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetSingle(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetSingle

SetString

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetString(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetString

SetString

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetString(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetString

SetVersion

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetVersion(
item_name,
Name of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetVersion

SetVersion

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetVersion(
item_name,
Name of item to add.
item_index,
Index of item to add.
item_value
Value of item to add.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetVersion

SetVersion

#
Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
public void SetVersion(
item_name,
Name of item to add.
item_index,
Index of item to add.
major,
Major component of Version structure.
minor,
Minor component of Version structure.
revision
Revision component of Version structure.
)
InvalidOperationExceptionThrown if another item with the same name and index already exists.
SetVersion

SetVersion

#
Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetVersion(
item_name,
Name of item to add.
major,
Major component of Version structure.
minor,
Minor component of Version structure.
revision
Revision component of Version structure.
)
InvalidOperationExceptionThrown if another item with the same name already exists.
SetVersion

TryGetBoolean

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetBoolean(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref bool
value
Target of assignment.
)
True if the value was set.
TryGetBoolean

TryGetBoolean

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetBoolean(
item_name,
Name of item to retrieve.
ref bool
value
Target of assignment.
)
True if the value was set.
TryGetBoolean

TryGetBoundingBox

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetBoundingBox(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetBoundingBox

TryGetBoundingBox

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetBoundingBox(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetBoundingBox

TryGetByte

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetByte(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref byte
value
Target of assignment.
)
True if the value was set.
TryGetByte

TryGetByte

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetByte(
item_name,
Name of item to retrieve.
ref byte
value
Target of assignment.
)
True if the value was set.
TryGetByte

TryGetDate

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDate(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetDate

TryGetDate

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDate(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetDate

TryGetDecimal

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDecimal(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref decimal
value
Target of assignment.
)
True if the value was set.
TryGetDecimal

TryGetDecimal

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDecimal(
item_name,
Name of item to retrieve.
ref decimal
value
Target of assignment.
)
True if the value was set.
TryGetDecimal

TryGetDouble

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDouble(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref double
value
Target of assignment.
)
True if the value was set.
TryGetDouble

TryGetDouble

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDouble(
item_name,
Name of item to retrieve.
ref double
value
Target of assignment.
)
True if the value was set.
TryGetDouble

TryGetDrawingColor

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingColor(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref Color
value
Target of assignment.
)
True if the value was set.
TryGetDrawingColor

TryGetDrawingColor

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingColor(
item_name,
Name of item to retrieve.
ref Color
value
Target of assignment.
)
True if the value was set.
TryGetDrawingColor

TryGetDrawingPoint

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingPoint(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref Point
value
Target of assignment.
)
True if the value was set.
TryGetDrawingPoint

TryGetDrawingPoint

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingPoint(
item_name,
Name of item to retrieve.
ref Point
value
Target of assignment.
)
True if the value was set.
TryGetDrawingPoint

TryGetDrawingPointF

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingPointF(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref PointF
value
Target of assignment.
)
True if the value was set.

TryGetDrawingPointF

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingPointF(
item_name,
Name of item to retrieve.
ref PointF
value
Target of assignment.
)
True if the value was set.

TryGetDrawingRectangle

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingRectangle(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref Rectangle
value
Target of assignment.
)
True if the value was set.

TryGetDrawingRectangle

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingRectangle(
item_name,
Name of item to retrieve.
ref Rectangle
value
Target of assignment.
)
True if the value was set.

TryGetDrawingRectangleF

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingRectangleF(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.

TryGetDrawingRectangleF

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingRectangleF(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.

TryGetDrawingSize

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingSize(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref Size
value
Target of assignment.
)
True if the value was set.
TryGetDrawingSize

TryGetDrawingSize

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingSize(
item_name,
Name of item to retrieve.
ref Size
value
Target of assignment.
)
True if the value was set.
TryGetDrawingSize

TryGetDrawingSizeF

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetDrawingSizeF(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref SizeF
value
Target of assignment.
)
True if the value was set.
TryGetDrawingSizeF

TryGetDrawingSizeF

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetDrawingSizeF(
item_name,
Name of item to retrieve.
ref SizeF
value
Target of assignment.
)
True if the value was set.
TryGetDrawingSizeF

TryGetGuid

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetGuid(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref Guid
value
Target of assignment.
)
True if the value was set.
TryGetGuid

TryGetGuid

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetGuid(
item_name,
Name of item to retrieve.
ref Guid
value
Target of assignment.
)
True if the value was set.
TryGetGuid

TryGetInt32

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetInt32(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref int
value
Target of assignment.
)
True if the value was set.
TryGetInt32

TryGetInt32

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetInt32(
item_name,
Name of item to retrieve.
ref int
value
Target of assignment.
)
True if the value was set.
TryGetInt32

TryGetInt64

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetInt64(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref long
value
Target of assignment.
)
True if the value was set.
TryGetInt64

TryGetInt64

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetInt64(
item_name,
Name of item to retrieve.
ref long
value
Target of assignment.
)
True if the value was set.
TryGetInt64

TryGetInterval1D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetInterval1D(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetInterval1D

TryGetInterval1D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetInterval1D(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetInterval1D

TryGetInterval2D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetInterval2D(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetInterval2D

TryGetInterval2D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetInterval2D(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetInterval2D

TryGetLine

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetLine(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref GH_Line
value
Target of assignment.
)
True if the value was set.
TryGetLine

TryGetLine

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetLine(
item_name,
Name of item to retrieve.
ref GH_Line
value
Target of assignment.
)
True if the value was set.
TryGetLine

TryGetPlane

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetPlane(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPlane

TryGetPlane

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetPlane(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPlane

TryGetPoint2D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetPoint2D(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPoint2D

TryGetPoint2D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetPoint2D(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPoint2D

TryGetPoint3D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetPoint3D(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPoint3D

TryGetPoint3D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetPoint3D(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPoint3D

TryGetPoint4D

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetPoint4D(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPoint4D

TryGetPoint4D

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetPoint4D(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetPoint4D

TryGetSingle

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetSingle(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref float
value
Target of assignment.
)
True if the value was set.
TryGetSingle

TryGetSingle

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetSingle(
item_name,
Name of item to retrieve.
ref float
value
Target of assignment.
)
True if the value was set.
TryGetSingle

TryGetString

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetString(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
ref string
value
Target of assignment.
)
True if the value was set.
TryGetString

TryGetString

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetString(
item_name,
Name of item to retrieve.
ref string
value
Target of assignment.
)
True if the value was set.
TryGetString

TryGetVersion

#
Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
public bool TryGetVersion(
item_name,
Name of item to retrieve.
item_index,
Index of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetVersion

TryGetVersion

#
Gets the value of the item with the specified name. Name comparison is not case-sensitive.
public bool TryGetVersion(
item_name,
Name of item to retrieve.
value
Target of assignment.
)
True if the value was set.
TryGetVersion

Write

#
Write this chunk and all child chunks to a binary stream.
public void Write(
writer
The Binary writer to use, cannot be null.
)
MemberAccessExceptionThrown if the name of this chunk is either null or empty.
Write

Write

#
Serialize this chunk into an Xml stream.
public void Write(
writer
Xml writer used for serialization.
)
MemberAccessExceptionThrown if
Write