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


Xceed.Grid.Reporting.v4.3 Assembly > Xceed.Grid.Reporting Namespace > HeaderFooter Class : PreserveImageAspectRatio Property
Gets or sets a boolean value indicating if the aspect ratio of the BackgroundImage should be preserved.
Syntax
'Declaration
 
<DescriptionAttribute("Indicates if the aspect ratio of the background image should be preserved.")>
<CategoryAttribute("Appearance")>
<DefaultValueAttribute(True)>
<LocalizableAttribute(True)>
<EditorAttribute("Xceed.Grid.Reporting.Design.UnitValueEditor, Xceed.Grid.v4.3,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)>
<EndUserDisplayNameAttribute("Preserve Image Aspect Ratio")>
Public Property PreserveImageAspectRatio As Boolean
'Usage
 
Dim instance As HeaderFooter
Dim value As Boolean
 
instance.PreserveImageAspectRatio = value
 
value = instance.PreserveImageAspectRatio
[Description("Indicates if the aspect ratio of the background image should be preserved.")]
[Category("Appearance")]
[DefaultValue(true)]
[Localizable(true)]
[Editor("Xceed.Grid.Reporting.Design.UnitValueEditor, Xceed.Grid.v4.3,Version=4.3.20076.12375,Culture=neutral,PublicKeyToken=ba83ff368b7563c6", System.Drawing.Design.UITypeEditor)]
[EndUserDisplayName("Preserve Image Aspect Ratio")]
public bool PreserveImageAspectRatio {get; set;}

Property Value

true if the aspect ratio of the BackgroundImage should be preserved; false otherwise. By default, true.
Remarks

The value of the PreserveImageAspectRation only applies in the case where Xceed.Grid.ImageStyle is set to Stretch.

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

HeaderFooter Class
HeaderFooter Members