SetStringData Method (ICustomData)

SetStringData Method (ICustomData) | Send Feedback
See Also Example

Index
  Index of the custom data element

Value
  String

Sets the specified custom data element whose data type is a string.

# Syntax

Visual Basic |
--- | ---
    Sub SetStringData( _
       ByVal Index As System.Integer, _
       ByVal Value As System.String _
    )

C# |
--- | ---
    void SetStringData(
       System.int Index,
       System.string Value
    )

JavaScript |
--- | ---
    SetStringData(
       Index : Number,
       Value : String
    )

COM native C++ |
--- | ---
    HRESULT SetStringData(
       LONG Index,
       BSTR Value
    )

C++ |
--- | ---
    DSRESULT SetStringData(
       long Index,
       const dsString& Value
    )

#### Parameters

Index
  Index of the custom data element
Value
  String

# 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

Call ICustomData::GetDataCount before calling this method to determine a valid value for Index.

# See Also

####

ICustomData Interface
ICustomData Members
ICustomData::GetStringData Method
ICustomData::InsertStringData Method

# Availability

DraftSight V1R1.2