Visual Basic (Declaration) | |
---|---|
<CategoryAttribute("Appearance")> <DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")> Public Overridable Property VerticalAlignMode As RasterPaintAlignMode |
Visual Basic (Usage) | Copy Code |
---|---|
|
C# | |
---|---|
[CategoryAttribute("Appearance")] [DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")] public virtual RasterPaintAlignMode VerticalAlignMode {get; set;} |
Managed Extensions for C++ | |
---|---|
[CategoryAttribute("Appearance")] [DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")] public: __property virtual RasterPaintAlignMode get_VerticalAlignMode(); public: __property virtual void set_VerticalAlignMode( RasterPaintAlignMode value ); |
C++/CLI | |
---|---|
[CategoryAttribute("Appearance")] [DescriptionAttribute("Select one of the center modes available to the control (near, center or Far).")] public: virtual property RasterPaintAlignMode VerticalAlignMode { RasterPaintAlignMode get(); void set (RasterPaintAlignMode value); } |
Return Value
An 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.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 (Width x 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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family