Gets or sets a boolean value indicating if the aspect ratio of the
BackgroundImage should be preserved.
'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.
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