LEADTOOLS Windows Forms (Leadtools.WinForms assembly)
LEAD Technologies, Inc

VerticalAlignMode Property (RasterImageViewer)






Gets or sets a value to determine 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
[DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")]
[CategoryAttribute("Appearance")]
public virtual RasterPaintAlignMode VerticalAlignMode {get; set;}
'Declaration
 
<DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")>
<CategoryAttribute("Appearance")>
Public Overridable Property VerticalAlignMode As RasterPaintAlignMode
'Usage
 
Dim instance As RasterImageViewer
Dim value As RasterPaintAlignMode
 
instance.VerticalAlignMode = value
 
value = instance.VerticalAlignMode
[DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")]
[CategoryAttribute("Appearance")]
public virtual RasterPaintAlignMode VerticalAlignMode {get; set;}
DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")
CategoryAttribute("Appearance")
 get_VerticalAlignMode();
set_VerticalAlignMode(value);
[DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")]
[CategoryAttribute("Appearance")]
public:
virtual property RasterPaintAlignMode VerticalAlignMode {
   RasterPaintAlignMode get();
   void set (    RasterPaintAlignMode value);
}

Property Value

An Leadtools.RasterPaintAlignMode enumeration value that determine 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.
Remarks

For 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 (Leadtools.RasterImage.Width x Leadtools.RasterImage.Height).

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

Note that RasterPaintAlignMode.CenterAlways is not currently supported for this control.

Example
Refer to RasterImageViewer.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

RasterImageViewer Class
RasterImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.