ImageRendition.Width property
Gets or sets the width for the image rendition.
Namespace: Microsoft.SharePoint.Publishing
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
<DataMemberAttribute> _
Public Property Width As Integer
Get
Set
'Usage
Dim instance As ImageRendition
Dim value As Integer
value = instance.Width
instance.Width = value
[DataMemberAttribute]
public int Width { get; set; }
Property value
Type: System.Int32
The width of the image rendition in pixels.
Remarks
An image rendition must have a Width property, Height() property, or both set to a value greater than zero. If both Width and Height are not set to a value greater than zero, the image rendition is considered invalid and the save operation fails.