GH_LooseChunk

GH_Chunk
public class GH_LooseChunk : GH_Chunk
A utility class for creating partial archives.

Constructors

GH_LooseChunk

#
Create a new loose chunk. A loose chunk does not have an owner archive and thus cannot store runtime messages.
public GH_LooseChunk(
chunk_name,
Name of this chunk.
chunk_index
Index of this chunk, negative one for no index.
)

GH_LooseChunk

#
Create a new loose chunk. A loose chunk does not have an owner archive and thus cannot store runtime messages.
public GH_LooseChunk(
chunk_name
Name of this chunk.
)

Fields

m_archive

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

m_chunks

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

m_comments

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

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
inherited fromGH_Chunk

m_items

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

m_name

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

Properties

Archive

Gets a pointer to the archive that owns the Root of the tree this chunk belongs to.
public GH_Archive Archive { get; }
inherited fromGH_Chunk
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; }
inherited fromGH_Chunk
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; }
inherited fromGH_Chunk
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; }
inherited fromGH_Chunk
Chunks

HasComments

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

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; }
inherited fromGH_Chunk

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; }
inherited fromGH_Chunk

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; }
inherited fromGH_Chunk
Index

ItemCount

Gets the number of items contained in this chunk.
public int ItemCount { get; }
inherited fromGH_Chunk
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; }
inherited fromGH_Chunk
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; }
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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
)
inherited fromGH_Chunk

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()
inherited fromGH_Chunk

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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
The newly created child chunk.
ArgumentExceptionThrown if the name+index coordinte is already occupied by another chunk.
CreateChunk

Deserialize_Binary

#
Deserializes a byte array.
public void Deserialize_Binary(
byte[]
content
Byte array to deserialize.
)
True on success, false on failure.

Deserialize_Xml

#
Deserializes an Xml string.
public void Deserialize_Xml(
xml_content
Xml to deserialize.
)
True on success, false on failure.

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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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

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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
Read

RemoveChunk

Remove the specified chunk from the litter.
public bool RemoveChunk(
chunk
Chunk to remove.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
True on success, false on failure.
RemoveItem

RemoveItem

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

Serialize_Binary

#
Serializes the data tree into a byte array.
public byte[] Serialize_Binary()
An array of bytes representing the Loose chunk.
This sample shows how to create a new loose chunk and serialize some values.
public byte[] CreateBinary(string archive_name, string[] item_names, int[] item_values)
{
  GH_LooseChunk chunk = new GH_LooseChunk(archive_name);
  
  for (int i = 0; i < item_names.Length; i++)
  {
    chunk.SetInt32(item_names[i], i, item_values[i]);
  }
  
  return chunk.Serialize_Binary();
}

Serialize_Xml

#
Serializes the data tree into an Xml string.
public string Serialize_Xml()
A string containing the Xml content.
This sample shows how to create a new loose chunk and serialize some values.
public string CreateXML(string archive_name, string[] item_names, int[] item_values)
{
  GH_LooseChunk chunk = new GH_LooseChunk(archive_name);
  
  for (int i = 0; i < item_names.Length; i++)
  {
    chunk.SetInt32(item_names[i], i, item_values[i]);
  }
  
  return chunk.Serialize_Xml();
}

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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
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.
)
inherited fromGH_Chunk
MemberAccessExceptionThrown if
Write