StartElement Event

Fired when a begin-element tag is encountered in the document.

Syntax

public event OnStartElementHandler OnStartElement;

public delegate void OnStartElementHandler(object sender, OfficedocStartElementEventArgs e);

public class OfficedocStartElementEventArgs : EventArgs {
  public string Namespace { get; }
  public string Element { get; }
  public string QName { get; }
  public bool IsEmpty { get; }
}
Public Event OnStartElement As OnStartElementHandler

Public Delegate Sub OnStartElementHandler(sender As Object, e As OfficedocStartElementEventArgs)

Public Class OfficedocStartElementEventArgs Inherits EventArgs
  Public ReadOnly Property Namespace As String
  Public ReadOnly Property Element As String
  Public ReadOnly Property QName As String
  Public ReadOnly Property IsEmpty As Boolean
End Class

Remarks

The StartElement event is fired when a begin-element tag is found in the document.

The element name is provided through the Element parameter. The attribute names and values (if any) are provided through the XAttributes collection.

The IsEmpty parameter is true when the event corresponds with an empty element declaration.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 .NET Edition - Version 20.0 [Build 8300]