Show / Hide Table of Contents

Struct Attr

Represents an HTML attribute.

Namespace: Eighty
Assembly: Eighty.dll
Syntax
public struct Attr

Constructors

| Improve this Doc View Source

Attr(String)

Create a Boolean HTML attribute.

Declaration
public Attr(string name)
Parameters
Type Name Description
String name

The name of the attribute

| Improve this Doc View Source

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 Source

Raw(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

| Improve this Doc View Source

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 Source

Implicit((String name, String value) to Attr)

Create an HTML attribute.

Declaration
public static implicit operator Attr((string name, string value) nameValue)
Parameters
Type Name Description
ValueTuple<String, String> nameValue

The name and value of the attribute

Returns
Type Description
Attr
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX