Table of Contents

Class HyperLink

Namespace
Sitecore.AspNetCore.SDK.LayoutService.Client.Response.Model.Properties
Assembly
Sitecore.AspNetCore.SDK.LayoutService.Client.dll

Represents the properties of a hyperlink in a Sitecore layout service response.

public class HyperLink
Inheritance
HyperLink
Inherited Members

Properties

Gets or sets the anchor of the hyperlink.

[DataMember(EmitDefaultValue = false)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Anchor { get; set; }

Property Value

string

Gets or sets the CSS class of the hyperlink.

[DataMember(EmitDefaultValue = false)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Class { get; set; }

Property Value

string

Gets or sets the href of the hyperlink.

public string? Href { get; set; }

Property Value

string

Gets or sets the target of the hyperlink.

[DataMember(EmitDefaultValue = false)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Target { get; set; }

Property Value

string

Gets or sets the text of the hyperlink.

[DataMember(EmitDefaultValue = false)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Text { get; set; }

Property Value

string

Gets or sets the title of the hyperlink.

[DataMember(EmitDefaultValue = false)]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? Title { get; set; }

Property Value

string