HtmlTag
TheArtOfDev.HtmlRenderer.Core.Dom
コンストラクター
プロパティ
Attributes : Dictionary<string, string>
Gets collection of attributes and their value the html tag has
メソッド
HasAttribute(string) : bool
Gets a boolean indicating if the attribute list has the specified attribute
- attribute
- attribute name to check if exists
戻り値: true - attribute exists, false - otherwise
HasAttributes() : bool
is the html tag has attributes.
戻り値: true - has attributes, false - otherwise
TryGetAttribute(string, string) : string
Get attribute value for given attribute name or null if not exists.
- attribute
- attribute name to get by
- defaultValue
- optional: value to return if attribute is not specified
戻り値: attribute value or null if not found
フィールド
_attributes : Dictionary<string, string>
collection of attributes and their value the html tag has