←Select platform

HorizontalAlignMode Property (RasterImageViewer)

Summary

Gets or sets a value to determine 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

C#
VB
C++
[CategoryAttribute("Appearance")] 
[DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")] 
public virtual Leadtools.RasterPaintAlignMode HorizontalAlignMode {get; set;} 
<CategoryAttribute("Appearance")> 
<DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")> 
Public Overridable Property HorizontalAlignMode As Leadtools.RasterPaintAlignMode 
[CategoryAttribute("Appearance")] 
[DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")] 
public: 
virtual property Leadtools.RasterPaintAlignMode HorizontalAlignMode { 
   Leadtools.RasterPaintAlignMode get(); 
   void set (    Leadtools.RasterPaintAlignMode ); 
} 

Property Value

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

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 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.

Example

Refer to RasterImageViewer.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.WinForms Assembly
Click or drag to resize