Struct Attr
Represents an HTML attribute.
Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Eighty
Assembly: Eighty.dll
Syntax
public struct Attr
Constructors
| Improve this Doc View SourceAttr(String)
Create a Boolean HTML attribute.
Declaration
public Attr(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the attribute |
Attr(String, String)
Create an HTML attribute.
Declaration
public Attr(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the attribute |
String | value | The value |
Methods
| Improve this Doc View SourceRaw(String)
Create a Boolean HTML attribute without HTML-encoding the name first.
Declaration
public static Attr Raw(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The pre-encoded name |
Returns
Type | Description |
---|---|
Attr | An HTML attribute |
Raw(String, String)
Create an HTML attribute without HTML-encoding the name and value first.
Declaration
public static Attr Raw(string name, string value)
Parameters
Type | Name | Description |
---|---|---|
String | name | The pre-encoded name |
String | value | The pre-encoded value |
Returns
Type | Description |
---|---|
Attr | An HTML attribute |
Operators
| Improve this Doc View SourceImplicit( to Attr)
Create an HTML attribute.
Declaration
public static implicit operator Attr(nameValue)
Parameters
Type | Name | Description |
---|---|---|
System. | nameValue | The name and value of the attribute |
Returns
Type | Description |
---|---|
Attr |