Back to Devexpress

MapItemsLoadedEventArgs Class

windowsforms-devexpress-dot-xtramap-1da29704.md

latest2.0 KB
Original Source

MapItemsLoadedEventArgs Class

Provides data for the LayerBase.DataLoaded event of the VectorItemsLayer.

Namespace : DevExpress.XtraMap

Assembly : DevExpress.XtraMap.v25.2.dll

NuGet Package : DevExpress.Win.Map

Declaration

csharp
public class MapItemsLoadedEventArgs :
    DataLoadedEventArgs
vb
Public Class MapItemsLoadedEventArgs
    Inherits DataLoadedEventArgs

Remarks

An instance of the MapItemsLoadedEventArgs class with appropriate settings is automatically created and passed to the corresponding event’s handler.

Example

csharp
void vectorLayer_DataLoaded(object sender, DataLoadedEventArgs e) {
    MapItemsLoadedEventArgs args = e as MapItemsLoadedEventArgs;
    if (args == null) return;

    lLayerState.Text = args.Items.Count().ToString() + " items loaded.";
}
vb
Private Sub vectorLayer_DataLoaded(ByVal sender As Object, ByVal e As DataLoadedEventArgs)
    Dim args As MapItemsLoadedEventArgs = TryCast(e, MapItemsLoadedEventArgs)
    If args Is Nothing Then
        Return
    End If

    lLayerState.Text = args.Items.Count().ToString() & " items loaded."
End Sub

Inheritance

Object EventArgs DataLoadedEventArgs MapItemsLoadedEventArgs

See Also

MapItemsLoadedEventArgs Members

DevExpress.XtraMap Namespace