Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets or sets the width of a Web image in the document library.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online
Syntax
'Declaration
Public Property WebImageWidth As Integer
Get
Set
'Usage
Dim instance As SPDocumentLibrary
Dim value As Integer
value = instance.WebImageWidth
instance.WebImageWidth = value
public int WebImageWidth { get; set; }
Property Value
Type: System.Int32
Returns an Int32 indicating the size of a thumbnail image in the document library.
Exceptions
Exception | Condition |
---|---|
[ArgumentOutOfRangeException] | Thrown when setting WebImageWidth to a value less than 1. |
Remarks
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.