SPDocumentLibrary.WebImageWidth property
取得或設定文件庫中的網頁影像的寬度。
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'宣告
Public Property WebImageWidth As Integer
Get
Set
'用途
Dim instance As SPDocumentLibrary
Dim value As Integer
value = instance.WebImageWidth
instance.WebImageWidth = value
public int WebImageWidth { get; set; }
Property value
Type: System.Int32
傳回Int32指出文件庫中的縮圖影像的大小。
Exceptions
Exception | Condition |
---|---|
[ArgumentOutOfRangeException] | 當將WebImageWidth設定為小於 1 的值時,便會擲回。 |
備註
這個屬性會指定像素為單位的網頁影像的寬度。當上載圖片時,剖析器會產生兩個縮圖: Web 映像,而且在縮圖影像。這個屬性會控制網頁的影像寬度。縮圖的高度和寬度是由ThumbnailSize所控制的。