Struct representing an internally used XML attribute.
More...
|
| override bool | Equals (object obj) |
| | Returns whether two instances are the same.
|
| override int | GetHashCode () |
| | Gets the hash code of the attribute.
|
|
| static XmlAttribute | CreateAttribute (string name, string value, string prefix="") |
| | Method to create an attribute instance.
|
| static XmlAttribute | CreateEmptyAttribute (string name, string prefix="") |
| | Method to create an empty attribute instance.
|
| static ? XmlAttribute | FindAttribute (string name, HashSet< XmlAttribute > attributes) |
| | Method to find an attribute in a given list by attribute name. It is assumed that there are no duplicates (attribute name).
|
|
| string | Name [get] |
| | Name of the attribute (without prefix).
|
| string | Value [get] |
| | Attribute value as string.
|
| bool | HasPrefix [get] |
| | True if a prefix for the attribute was defined.
|
| string | Prefix [get] |
| | Prefix of the attribute. If not defined, the prefix will be an empty string.
|
Struct representing an internally used XML attribute.
Definition at line 16 of file XmlAttribute.cs.
◆ CreateAttribute()
| XmlAttribute NanoXLSX.Utils.Xml.XmlAttribute.CreateAttribute |
( |
string | name, |
|
|
string | value, |
|
|
string | prefix = "" ) |
|
static |
Method to create an attribute instance.
- Parameters
-
| name | Attribute name |
| value | Attribute value |
| prefix | Optional attribute prefix |
- Returns
- Attribute instance
Definition at line 57 of file XmlAttribute.cs.
◆ CreateEmptyAttribute()
| XmlAttribute NanoXLSX.Utils.Xml.XmlAttribute.CreateEmptyAttribute |
( |
string | name, |
|
|
string | prefix = "" ) |
|
static |
Method to create an empty attribute instance.
- Parameters
-
| name | Attribute name |
| prefix | Optional attribute prefix |
- Returns
- Attribute instance
Definition at line 68 of file XmlAttribute.cs.
◆ Equals()
| override bool NanoXLSX.Utils.Xml.XmlAttribute.Equals |
( |
object | obj | ) |
|
Returns whether two instances are the same.
- Parameters
-
- Returns
- True if this instance and the other are the same
Definition at line 97 of file XmlAttribute.cs.
◆ FindAttribute()
| ? XmlAttribute NanoXLSX.Utils.Xml.XmlAttribute.FindAttribute |
( |
string | name, |
|
|
HashSet< XmlAttribute > | attributes ) |
|
static |
Method to find an attribute in a given list by attribute name. It is assumed that there are no duplicates (attribute name).
- Parameters
-
| name | Attribute name |
| attributes | List of attributes |
- Returns
- Attribute that matches the name, or null if no attribute was found
Definition at line 79 of file XmlAttribute.cs.
◆ GetHashCode()
| override int NanoXLSX.Utils.Xml.XmlAttribute.GetHashCode |
( |
| ) |
|
Gets the hash code of the attribute.
- Returns
- Hash code of the attribute
Definition at line 109 of file XmlAttribute.cs.
◆ HasPrefix
| bool NanoXLSX.Utils.Xml.XmlAttribute.HasPrefix |
|
get |
True if a prefix for the attribute was defined.
Definition at line 29 of file XmlAttribute.cs.
◆ Name
| string NanoXLSX.Utils.Xml.XmlAttribute.Name |
|
get |
Name of the attribute (without prefix).
Definition at line 21 of file XmlAttribute.cs.
◆ Prefix
| string NanoXLSX.Utils.Xml.XmlAttribute.Prefix |
|
get |
Prefix of the attribute. If not defined, the prefix will be an empty string.
Definition at line 33 of file XmlAttribute.cs.
◆ Value
| string NanoXLSX.Utils.Xml.XmlAttribute.Value |
|
get |
The documentation for this struct was generated from the following file: