Share via


ImageRendition.Width property

Gets or sets the width for the image rendition.

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

Syntax

'Declaration
Public Property Width As Integer
    Get
    Set
'Usage
Dim instance As ImageRendition
Dim value As Integer

value = instance.Width

instance.Width = value
public int Width { get; set; }

Property value

Type: System.Int32
The width for the image rendition.

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.

See also

Reference

ImageRendition class

ImageRendition members

Microsoft.SharePoint.Client.Publishing namespace