InsertByteData Method (ICustomData)

InsertByteData Method (ICustomData) | Send Feedback
See Also Example

Index
  Index where to insert the custom data

ByteArray
  Binary array of doubles (see Remarks)

Inserts the specified custom data element whose data type is a binary array.

# Syntax

Visual Basic |
--- | ---
    Sub InsertByteData( _
       ByVal Index As System.Integer, _
       ByVal ByteArray As System.Object _
    )

C# |
--- | ---
    void InsertByteData(
       System.int Index,
       System.object ByteArray
    )

JavaScript |
--- | ---
    InsertByteData(
       Index : Number,
       ByteArray : Array
    )

COM native C++ |
--- | ---
    HRESULT InsertByteData(
       LONG Index,
       VARIANT ByteArray
    )

C++ |
--- | ---
    DSRESULT InsertByteData(
       long Index,
       const dsByteArray& ByteArray
    )

#### Parameters

Index
  Index where to insert the custom data
ByteArray
  Binary array of doubles (see Remarks)

# Example

Add, Modify, and Remove Custom Data (C#)
Add, Modify, and Remove Custom Data (VB.NET)
Add, Modify, and Remove Custom Data (VBA)
Add and Modify Custom Data (JavaScript)

# Remarks

Binary data is organized into variable-length chunks. The maximum length of each chunk is 127 bytes. If a binary array larger than 127 bytes is passed, then the custom data is not added. If your application requires more than 127 bytes of binary data, then the application must organize the data into multiple chunks.

# See Also

####

ICustomData Interface
ICustomData Members
ICustomData::GetByteData Method
ICustomData::SetByteData Method

# Availability

DraftSight V1R1.2