Share via


RichImageField.RenditionId property

Gets or sets the ID of a valid image rendition of the site collection.

Namespace:  Microsoft.SharePoint.Publishing.WebControls
Assembly:  Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)

Syntax

'Declaration
<BrowsableAttribute(True)> _
Public Property RenditionId As Integer
    Get
    Set
'Usage
Dim instance As RichImageField
Dim value As Integer

value = instance.RenditionId

instance.RenditionId = value
[BrowsableAttribute(true)]
public int RenditionId { get; set; }

Property value

Type: System.Int32
The ID of a valid image rendition.

Remarks

If the RenditionId property is set to the ID of a valid image rendition of the site collection, then the RenditionId property will be used automatically to select the image rendition to use for the selected image.

The user interface (UI) that is used to select the image rendition of the image is also disabled. If the RenditionId property is set, the image URL will include the rendition ID when rendered in the browser.

See also

Reference

RichImageField class

RichImageField members

Microsoft.SharePoint.Publishing.WebControls namespace