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