WorksheetReader.GetAttribute Method

NanoXLSX

NanoXLSX

WorksheetReaderGetAttribute Method

Gets the attribute with the passed name.

Namespace:  NanoXLSX.LowLevel
Assembly:  NanoXLSX (in NanoXLSX.dll) Version: 1.2.3.0 (1.2.3)
Syntax
C#
private string GetAttribute(
	string targetName,
	XmlNode node,
	string defaultValue
)

Parameters

targetName
Type: SystemString
Name of the target attribute
node
Type: System.XmlXmlNode
XML node that contains the attribute
defaultValue
Type: SystemString
Default value if the attribute was not found

Return Value

Type: String
Attribute value as string or default value if not found (can be null)
See Also