Condividi tramite


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)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

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.

See Also

Reference

SPDocumentLibrary Class

SPDocumentLibrary Members

Microsoft.SharePoint Namespace