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






Windows & Linux

Description

Returns a collection of filenames.

Property type

Read-only property

Syntax

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

[C#]
public AgDataObjectFiles Files {get;}

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

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

[Java]
public AgDataObjectFiles getFiles();

Remarks

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.

Example

[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
       ...
    Next

End Sub

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface