API Reference
Struct
HtmlSrcSetCandidate
Represents one candidate in an HTML srcset attribute.
Inheritance
- ValueType
- HtmlSrcSetCandidate
Usage
Explore 5 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 5
Constructors
public HtmlSrcSetCandidate(String url, String descriptor) #Creates a source-set candidate.
Parameters
- url System.String
- descriptor System.String
Inherited Methods
public override Boolean Equals(Object? obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object?
Properties
public String Url { get; } #Candidate URL before caller-specific resolution.
public String Descriptor { get; } #Candidate descriptor, such as 2x or 640w.
public Int32 UrlStart { get; } #Zero-based offset of HtmlSrcSetCandidate.Url in the parsed source-set value, or -1 when the candidate was constructed directly.