Share via


ImageWebPart.HorizontalAlignment property

Gets or sets horizontal alignment for the image.

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

Syntax

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

value = instance.HorizontalAlignment

instance.HorizontalAlignment = value
[ResourcesAttribute("HorizontalAlignmentLabel", "Advanced", "HorizontalAlignment")]
[WebPartStorageAttribute(Storage.Shared)]
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