HeaderPane
Main
Hide
Share Link
Print

DataObjectFiles.Add Method

Adds a filename to the Files collection of a DataObject object (sftCFFiles format only).

Syntax

C#void object.Add(string Filename, object ItemIndex);
VB.NETobject.Add(ByVal Filename As String, [ ByVal ItemIndex As Object ] )
C++HRESULT object->Add(_bstr_t Filename, const _variant_t& ItemIndex = vtMissing);
CHRESULT object->raw_Add(BSTR Filename, VARIANT ItemIndex);
VBobject.Add(ByVal Filename As String, [ ByVal ItemIndex As Variant ] )

object

A DataObjectFiles object.

Filename

The file name to be added to the collection.

ItemIndex

The one-based position where the file name is to be inserted. If ItemIndex is not specified, the new file name is added at the end of the collection.

Comments

The Add method adds a filename to the Files collection of a DataObject object (sftCFFiles format only).

The Files collection is filled with file names only when the DataObject object contains data of type sftCFFiles. The DataObject object can contain several different types of data. You can iterate through the DataObject.Files collection to retrieve the list of file names.

See Also DataObjectFiles Object | Object Hierarchy


Last Updated 11/03/2026 - (email)
© 2026 Softel vdm, Inc.