共用方式為


ImageWebPart.ShouldSerializeVerticalAlignment method

表示是否應該保存的VerticalAlignment屬性。

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

Syntax

'宣告
Public Function ShouldSerializeVerticalAlignment As Boolean
'用途
Dim instance As ImageWebPart
Dim returnValue As Boolean

returnValue = instance.ShouldSerializeVerticalAlignment()
public bool ShouldSerializeVerticalAlignment()

傳回值

Type: System.Boolean
true如果屬性值已變更其預設值 ;否則, false。

備註

因為VerticalAlignment屬性並沒有簡單的預設值,將提供ShouldSerializeVerticalAlignment方法。這個方法會指示屬性是否已變更其預設值。如果您開發ImageWebPart的設計工具或開發您自己加入ImageWebPart的控制項,您通常叫用這個方法。

請參閱

參照

ImageWebPart class

ImageWebPart members

Microsoft.SharePoint.WebPartPages namespace