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.
[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 );
}
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.
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.
Refer to RasterImageViewer.
![]() |
Products |
Support |
Feedback: HorizontalAlignMode Property (RasterImageViewer) - Leadtools.WinForms |
Introduction |
Help Version 19.0.2017.3.22
|
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.