Gets and sets a value that determines how to center the image in the control's client area horizontally,
when the width of the destination rectangle is smaller than the width of the client area.
Syntax
Visual Basic (Usage) | Copy Code |
---|
Dim instance As ImageViewer
Dim value As HorizontalAlignment
instance.ImageHorizontalAlignment = value
value = instance.ImageHorizontalAlignment
|
XAML Attributes Usage | |
---|
<object ImageHorizontalAlignment=HorizontalAlignment .../> |
XAML Attributes Usage | |
---|
<object ImageHorizontalAlignment=HorizontalAlignment .../> |
Return Value
A HorizontalAlignment enumeration value that determines how to center the image in the control's client area horizontally, when the width of the destination rectangle is smaller than the width of the client area.
Default value is
HorizontalAlignment.Center.
Remarks
Requirements
Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family
See Also