共用方式為


ImageWebPart.HorizontalAlignment Property

Gets or sets horizontal alignment for the image.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
<WebPartStorageAttribute(Storage.Shared)> _
<ResourcesAttribute("HorizontalAlignmentLabel", "Advanced", "HorizontalAlignment")> _
Public Property HorizontalAlignment As HorizontalAlignment
    Get
    Set
'Usage
Dim instance As ImageWebPart
Dim value As HorizontalAlignment

value = instance.HorizontalAlignment

instance.HorizontalAlignment = value
[WebPartStorageAttribute(Storage.Shared)]
[ResourcesAttribute("HorizontalAlignmentLabel", "Advanced", "HorizontalAlignment")]
public HorizontalAlignment HorizontalAlignment { get; set; }

Property Value

Type: Microsoft.SharePoint.WebPartPages.HorizontalAlignment
Value from the Microsoft.SharePoint.WebPartPages.HorizontalAlignment enumeration. Values include " Left," "Center," and "Right."

Remarks

The HorizontalAlignment property is read/write.

See Also

Reference

ImageWebPart Class

ImageWebPart Members

Microsoft.SharePoint.WebPartPages Namespace