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
RequestResponse
public class Image : ObjectConstructors
Image()
Declaration
RequestResponse
public Image()Properties
Alt
Gets or sets the alternative text of the image.
Declaration
RequestResponse
public string Alt { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
Border
Gets or sets the border thickness of the image.
Declaration
RequestResponse
public Nullable<int> Border { get; set; }Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Class
Gets or sets the class of the image.
Declaration
RequestResponse
public string Class { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
Height
Gets or sets the height of the image.
Declaration
RequestResponse
public Nullable<int> Height { get; set; }Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
HSpace
Gets or sets the number of whitespaces on the left and the right side of the image.
Declaration
RequestResponse
public Nullable<int> HSpace { get; set; }Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Src
Gets or sets the source of the image.
Declaration
RequestResponse
public string Src { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
Title
Gets or sets the title of the image.
Declaration
RequestResponse
public string Title { get; set; }Property Value
| Type | Description |
|---|---|
| System.String |
VSpace
Gets or sets the number of whitespaces on the bottom and top side of the image.
Declaration
RequestResponse
public Nullable<int> VSpace { get; set; }Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |
Width
Gets or sets the width of the image.
Declaration
RequestResponse
public Nullable<int> Width { get; set; }Property Value
| Type | Description |
|---|---|
| System.Nullable<System.Int32> |