SPDocumentLibrary.ThumbnailSize property
Gets or sets the height and width of a thumbnail image in pixels in the image gallery.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Property ThumbnailSize As Integer
Get
Set
'Usage
Dim instance As SPDocumentLibrary
Dim value As Integer
value = instance.ThumbnailSize
instance.ThumbnailSize = value
public int ThumbnailSize { get; set; }
Property value
Type: System.Int32
Returns Int32 indicating the size of a thumbnail images.
Exceptions
Exception | Condition |
---|---|
[ArgumentOutOfRangeException] | Thrown when setting ThumbnailSize to a value less than 1. |