SPDocumentLibrary.WebImageHeight property

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

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

'Declaration
Public Property WebImageHeight As Integer
	Get
	Set
'Usage
Dim instance As SPDocumentLibrary
Dim value As Integer

value = instance.WebImageHeight

instance.WebImageHeight = value

Property value

Type: System.Int32
Returns an Int32 indicating the height of a Web image in the document library.

ExceptionCondition
[ArgumentOutOfRangeException]

Thrown when setting WebImageHeight to a value less than 1.

This property specifies the height 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 height is controlled by this property. Both the thumbnail height and width are controlled by ThumbnailSize.

Show: