Xceed Grid for WinForms v4.3 Documentation
PreserveImageAspectRatio Property (ComboBoxViewer)


Xceed.Grid.v4.3 Assembly > Xceed.Grid.Viewers Namespace > ComboBoxViewer Class : PreserveImageAspectRatio Property
Gets or sets a boolean value indicating if the image should preserve its aspect ratio.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates if the image should preserve its aspect ratio.")>

<CategoryAttribute("Appearance")>

<BrowsableAttribute(True)>

<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Visible)>

Public Shadows Property PreserveImageAspectRatio As Boolean
'Usage
 
Dim instance As ComboBoxViewer

Dim value As Boolean

 

instance.PreserveImageAspectRatio = value

 

value = instance.PreserveImageAspectRatio
[Description("Indicates if the image should preserve its aspect ratio.")]

[Category("Appearance")]

[Browsable(true)]

[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]

public new bool PreserveImageAspectRatio {get; set;}

Property Value

true if the image should preserve its aspect ratio; false otherwise. By default, DefaultPreserveImageAspectRatio.
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

ComboBoxViewer Class
ComboBoxViewer Members