Leadtools.Silverlight3.Controls Requires Document/Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
ImageVerticalAlignment Property
See Also 
Leadtools.Silverlight3.Controls Namespace > ImageViewer Class : ImageVerticalAlignment Property





Gets and sets a value that determines how to center the image in the control's client area vertically, when the height of the destination rectangle is smaller than the height of the client area.

Syntax

Visual Basic (Declaration) 
Public Property ImageVerticalAlignment As VerticalAlignment
Visual Basic (Usage)Copy Code
Dim instance As ImageViewer
Dim value As VerticalAlignment
 
instance.ImageVerticalAlignment = value
 
value = instance.ImageVerticalAlignment
C# 
public VerticalAlignment ImageVerticalAlignment {get; set;}
C++/CLI 
public:
property VerticalAlignment ImageVerticalAlignment {
   VerticalAlignment get();
   void set (VerticalAlignment value);
}
XAML Attributes Usage 

<object ImageVerticalAlignment=VerticalAlignment .../>

Dependencies Property Information 

Identifier field

ImageVerticalAlignmentProperty

XAML Attributes Usage 

<object ImageVerticalAlignment=VerticalAlignment .../>

Dependencies Property Information 

Identifier field

ImageVerticalAlignmentProperty

Return Value

A HorizontalAlignment enumeration value that determines how to center the image in the control's client area vertically, when the height of the destination rectangle is smaller than the height of the client area. Default value is VerticalAlignment.Center.

Remarks

As an example, this can be used to center a small image when it is displayed in a control that is larger than the image's dimensions.

This can also be used in conjunction with the ImageHorizontalAlignment property, SizeMode property and the ScaleFactor property to center an image when the zoomed display dimensions are smaller than the control's dimensions.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

ImageVerticalAlignment requires an OCR module license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features