Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SPDocumentLibrary.WebImageWidth property

Gets or sets the width of a Web image in the document library.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
public int WebImageWidth { get; set; }

Property value

Type: System.Int32
Returns an Int32 indicating the size of a thumbnail image in the document library.

Thrown when setting WebImageWidth to a value less than 1.

This property specifies the width of the Web image in pixels. When a picture is uploaded, the parser generates two thumbnails: the Web image, and the thumbnail image. The Web image width is controlled by this property. Both the thumbnail height and width are controlled by ThumbnailSize.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.