Class ImageDescriptorAttribute
Represents the image descriptor attribute.
Inheritance
System.Object
ImageDescriptorAttribute
Namespace: EPiServer.DataAnnotations
Assembly: EPiServer.dll
Version: 12.0.3Syntax
public class ImageDescriptorAttribute : Attribute
Remarks
This attribute is used by page properties to specifiy the thumbnail image format. For example: width, height of the thumbnail image.
Constructors
ImageDescriptorAttribute()
Initializes a new instance of the Image
Declaration
public ImageDescriptorAttribute()
ImageDescriptorAttribute(Int32, Int32)
Initializes a new instance of the Image
Declaration
public ImageDescriptorAttribute(int height, int width)
Parameters
Type | Name | Description |
---|---|---|
System. |
height | Thumbnail image height |
System. |
width | Thumbnail image width |
Properties
Height
Gets, sets the thumbnail image height
Declaration
public int Height { get; set; }
Property Value
Type | Description |
---|---|
System. |
Pregenerated
If the thumbnail should be pregenerated when a new image is uploaded rather than when first requested
Declaration
public bool Pregenerated { get; set; }
Property Value
Type | Description |
---|---|
System. |
Width
Gets, sets the thumbnail image width
Declaration
public int Width { get; set; }
Property Value
Type | Description |
---|---|
System. |