Class Image

Version: 21.x

Represents the properties of an image in a Sitecore layout service response.

Inheritance

System.Object

Image

Namespace: Sitecore.LayoutService.Client.Response.Model.Properties

Assembly: Sitecore.LayoutService.Client.Abstractions.dll

Syntax
public class Image : Object

Constructors

Image()

Declaration
public Image()

Properties

Alt

Gets or sets the alternative text of the image.

Declaration
public string Alt { get; set; }
Property Value
TypeDescription
System.String

Border

Gets or sets the border thickness of the image.

Declaration
public Nullable<int> Border { get; set; }
Property Value
TypeDescription
System.Nullable

<

System.Int32

>

Class

Gets or sets the class of the image.

Declaration
public string Class { get; set; }
Property Value
TypeDescription
System.String

Height

Gets or sets the height of the image.

Declaration
public Nullable<int> Height { get; set; }
Property Value
TypeDescription
System.Nullable

<

System.Int32

>

HSpace

Gets or sets the number of whitespaces on the left and the right side of the image.

Declaration
public Nullable<int> HSpace { get; set; }
Property Value
TypeDescription
System.Nullable

<

System.Int32

>

Src

Gets or sets the source of the image.

Declaration
public string Src { get; set; }
Property Value
TypeDescription
System.String

Title

Gets or sets the title of the image.

Declaration
public string Title { get; set; }
Property Value
TypeDescription
System.String

VSpace

Gets or sets the number of whitespaces on the bottom and top side of the image.

Declaration
public Nullable<int> VSpace { get; set; }
Property Value
TypeDescription
System.Nullable

<

System.Int32

>

Width

Gets or sets the width of the image.

Declaration
public Nullable<int> Width { get; set; }
Property Value
TypeDescription
System.Nullable

<

System.Int32

>
If you have suggestions for improving this article, let us know!