STK X Send comments on this topic.
Files Property (AgDataObject)
See Also  Example

Windows & Linux


Returns a collection of filenames.

Property type

Read-only property


[Visual Basic .NET]
Public Property Files() As AgDataObjectFiles

public AgDataObjectFiles Files {get;}

[Managed C++]
public: __property AgDataObjectFiles^ get_Files();

[Unmanaged C++]
public: HRESULT get_Files(
AgDataObjectFiles ** ppRetVal

public AgDataObjectFiles getFiles();


The Files collection is filled with filenames only when the DataObject object contains data of type files. The DataObject object can only contain files in the current implementation, so the Files collection will be empty if any other type of data is dropped on the control. You can iterate through the collection to retrieve the list of file names.


[Visual Basic .NET] Copy Code
Private Sub AxAgUiAxVOCntrl1_OLEDragDrop( _
                ByVal sender As System.Object, _
                ByVal e As AxAGI.STKX.IAgUiAxVOCntrlEvents_OLEDragDropEvent) _
            Handles AxAgUiAxVOCntrl1.OLEDragDrop

    Dim file As String
    For Each file In e.Data.Files

End Sub

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK Engine for UNIX 11.3.0