GH_Chunk
ReferencesFull 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.
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.
Fields
m_archive
#Pointer to the archive that owns the Root of the tree this chunk belongs to.
protected GH_Archive m_archive
m_comments
#List of text comments. This list is automatically instantiated once the first comment is added.
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
Properties
Archive
#Gets a pointer to the archive that owns the Root of the tree this chunk belongs to.
Implements: Archive
ArchiveLocation
#Gets a string representing the URI with which the archive is associated. The location may be a null string.
Implements: ArchiveLocation
ChunkCount
#Gets the number of child chunks contained in this chunk. The set of all child chunks is referred to as a 'litter'.
Implements: ChunkCount
Chunks
#Gets a pointer to the internal list of child chunks. Do not access this list unless you know what you are doing.
Implements: Chunks
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.
HasName
#Gets the name validity of this item. The item is considered to have an invalid name if string.IsNullOrEmpty(name)
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.
Implements: Index
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.
Exceptions:
| ArgumentNullException | Thrown if the content text is either null or empty. |
Implements: 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().
Exceptions:
| ArgumentNullException | Thrown if message text is null or empty. |
Implements: 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.
Returns: True if a chunk with the specified name and index exists, otherwise false.
Implements: 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.
Returns: True if a chunk with the specified name exists, otherwise false.
Implements: ChunkExists
CopyValuesToChunk
#Copy all values and sub-chunks in this chunk to another chunk which does not point to the same archive.
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.
Returns: The newly created child chunk.
Exceptions:
| ArgumentException | Thrown if the name+index coordinte is already occupied by another chunk. |
Implements: 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.
Returns: The newly created child chunk.
Exceptions:
| ArgumentException | Thrown if the name+index coordinte is already occupied by another chunk. |
Implements: 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.
Returns: The child chunk that matches the given name and index, or null of no matching chunk could be found.
Implements: FindChunk
FindChunk
#Finds the first chunk in the litter that matches the given name. Only chunks without index qualifiers are considered.
Returns: The child chunk that matches the given name, or null of no matching chunk could be found.
Implements: 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.
Returns: The item that matches the given name and index, or null of no matching item could be found.
Implements: FindItem
FindItem
#Finds the first item that matches the given name. Only items without index qualifiers are considered. Name comparisons are not case-sensitive.
Returns: The item that matches the given name, or null of no matching item could be found.
Implements: FindItem
GetBoolean
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetBoolean
GetBoolean
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetBoolean
GetBoundingBox
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetBoundingBox
GetBoundingBox
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetBoundingBox
GetByte
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetByte
GetByte
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetByte
GetByteArray
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetByteArray
GetByteArray
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetByteArray
GetDate
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDate
GetDate
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDate
GetDecimal
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDecimal
GetDecimal
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDecimal
GetDouble
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDouble
GetDouble
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDouble
GetDoubleArray
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDoubleArray
GetDoubleArray
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDoubleArray
GetDrawingBitmap
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingBitmap
GetDrawingBitmap
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingBitmap
GetDrawingColor
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingColor
GetDrawingColor
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingColor
GetDrawingPoint
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingPoint
GetDrawingPoint
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingPoint
GetDrawingPointF
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingPointF
GetDrawingPointF
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingPointF
GetDrawingRectangle
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingRectangle
GetDrawingRectangle
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingRectangle
GetDrawingRectangleF
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingRectangleF
GetDrawingRectangleF
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingRectangleF
GetDrawingSize
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingSize
GetDrawingSize
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingSize
GetDrawingSizeF
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetDrawingSizeF
GetDrawingSizeF
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetDrawingSizeF
GetGuid
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetGuid
GetGuid
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetGuid
GetInt32
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetInt32
GetInt32
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetInt32
GetInt64
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetInt64
GetInt64
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetInt64
GetInterval1D
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetInterval1D
GetInterval1D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetInterval1D
GetInterval2D
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetInterval2D
GetInterval2D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetInterval2D
GetLine
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetLine
GetLine
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetLine
GetPath
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: 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].
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetPath
GetPath
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: 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].
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetPath
GetPlane
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetPlane
GetPlane
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetPlane
GetPoint2D
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetPoint2D
GetPoint2D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetPoint2D
GetPoint3D
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetPoint3D
GetPoint3D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetPoint3D
GetPoint4D
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetPoint4D
GetPoint4D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetPoint4D
GetSingle
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetSingle
GetSingle
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetSingle
GetString
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetString
GetString
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: GetString
GetVersion
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name and index does not exist. |
Implements: GetVersion
GetVersion
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: The inner value of the item.
Exceptions:
| OverflowException | Thrown if the type conversion fails. |
| InvalidCastException | Thrown if the type conversion is invalid. |
| NullReferenceException | Thrown if the item with the specified name does not exist. |
Implements: 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.
Exceptions:
| ArgumentNullException | Thrown 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.
Returns: True if an item with the specified name and index exists, otherwise false.
Implements: ItemExists
ItemExists
#Gets the occupancy for a specific item name. Only items without index qualifiers are considered.
Returns: True if an item with a similar name already exists, false if not.
Implements: ItemExists
RemoveChunk
#Remove the specified chunk from the litter.
Returns: True is chunk was removed, false if chunk is not part of this litter.
Exceptions:
| ArgumentNullException | Thrown if chunk is a null reference. |
Implements: 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.
Returns: True is chunk was removed, false if no matching chunk could be found.
Implements: RemoveChunk
RemoveChunk
#Remove the first chunk with a matching name. Only chunks without index qualifiers are considered. Name comparisons are not case-sensitive.
Returns: True is chunk was removed, false if no matching chunk could be found.
Implements: RemoveChunk
RemoveItem
#Remove an indexed item from this chunk.
Returns: True on success, false on failure.
Implements: RemoveItem
RemoveItem
#Remove an unindexed item from this chunk.
Returns: True on success, false on failure.
Implements: RemoveItem
SetBoolean
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetBoolean
SetBoundingBox
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetBoundingBox()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetBoundingBox
SetByte
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetByte
SetByteArray
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetByteArray
SetDate
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDate
SetDecimal
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDecimal
SetDouble
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDouble
SetDoubleArray
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDoubleArray
SetDrawingBitmap
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingBitmap()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetDrawingBitmap
SetDrawingBitmap
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetDrawingBitmap
SetDrawingColor
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingColor()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDrawingPoint
SetDrawingPoint
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingPoint()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDrawingPointF
SetDrawingPointF
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingPointF()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDrawingRectangle
SetDrawingRectangle
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingRectangle()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetDrawingRectangle
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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDrawingRectangleF
SetDrawingRectangleF
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingRectangleF()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetDrawingRectangleF
SetDrawingSize
#Add a new data item to this chunk. The combination of name and index must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDrawingSize
SetDrawingSize
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingSize()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetDrawingSizeF
SetDrawingSizeF
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetDrawingSizeF()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetDrawingSizeF
SetGuid
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetInt32
SetInt32
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetInt64
SetInt64
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetInt64
SetInterval1D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetInterval1D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetInterval1D
SetInterval2D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetInterval2D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetInterval2D
SetLine
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetPath
SetPlane
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetPlane
SetPoint2D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPoint2D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetPoint2D
SetPoint3D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPoint3D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetPoint3D
SetPoint4D
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetPoint4D()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetPoint4D
SetSingle
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetString
SetString
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetString
SetVersion
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
public void SetVersion()
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: 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.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name and index already exists. |
Implements: SetVersion
SetVersion
#Add a new data item to this chunk. The name must be unique or an exception will be thrown.
Exceptions:
| InvalidOperationException | Thrown if another item with the same name already exists. |
Implements: SetVersion
TryGetBoolean
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetBoolean
TryGetBoolean
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_BoundingBox
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetBoundingBox
TryGetBoundingBox
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetBoundingBox
TryGetByte
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetByte
TryGetByte
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetByte
TryGetDate
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDate
TryGetDate
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDate
TryGetDecimal
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDecimal
TryGetDecimal
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDecimal
TryGetDouble
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDouble
TryGetDouble
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDouble
TryGetDrawingColor
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingColor
TryGetDrawingColor
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingColor
TryGetDrawingPoint
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingPoint
TryGetDrawingPoint
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingPoint
TryGetDrawingPointF
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingPointF
TryGetDrawingPointF
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingPointF
TryGetDrawingRectangle
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingRectangle
TryGetDrawingRectangle
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingRectangle
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.
ref RectangleF
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetDrawingRectangleF
TryGetDrawingRectangleF
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingRectangleF
TryGetDrawingSize
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingSize
TryGetDrawingSize
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingSize
TryGetDrawingSizeF
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingSizeF
TryGetDrawingSizeF
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetDrawingSizeF
TryGetGuid
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetGuid
TryGetGuid
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetGuid
TryGetInt32
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetInt32
TryGetInt32
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetInt32
TryGetInt64
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetInt64
TryGetInt64
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_Interval1D
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetInterval1D
TryGetInterval1D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_Interval2D
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetInterval2D
TryGetInterval2D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetInterval2D
TryGetLine
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetLine
TryGetLine
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetLine
TryGetPlane
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetPlane
TryGetPlane
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_Point2D
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetPoint2D
TryGetPoint2D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_Point3D
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetPoint3D
TryGetPoint3D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_Point4D
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetPoint4D
TryGetPoint4D
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetPoint4D
TryGetSingle
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetSingle
TryGetSingle
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetSingle
TryGetString
#Gets the value of the item with the specified name and index. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetString
TryGetString
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: 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.
ref GH_Version
value
Target of assignment.
Returns: True if the value was set.
Implements: TryGetVersion
TryGetVersion
#Gets the value of the item with the specified name. Name comparison is not case-sensitive.
Returns: True if the value was set.
Implements: TryGetVersion
Write
#Write this chunk and all child chunks to a binary stream.
Exceptions:
| MemberAccessException | Thrown if the name of this chunk is either null or empty. |
Implements: Write
Write
#Serialize this chunk into an Xml stream.
Exceptions:
| MemberAccessException | Thrown if |
Implements: Write