Message-ID: <619223640.8563.1711650393774.JavaMail.web05$@web05> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_8562_1539320207.1711650393774" ------=_Part_8562_1539320207.1711650393774 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html HeaderFooterPicture.LockAspectRatio

HeaderFooterPicture.LockAspectRatio

Descript= ion

=20

Gets or sets whether the aspect ratio of the picture should be locked.

=20
C#
=20
public bool LockAspectRatio { get; set; }
=20
=20
vb.net
=20
Public Function LockAspectRatio() As Boolean
=20
=20

Remarks

=20

Use this property to maintain or break the same aspect ratio for a pictu= re in a header or footer while resizing. The default value is true.

=20

You will still be able to manipulate the Height and Width independently in = ExcelWriter, regardless of this value. The aspect ratio is only locked when= trying to resize the picture in Excel.

=20

Examples

=20
C#
=20
HeaderFooterPicture hfp =3D header.GetPicture();

//--- Lock the aspect ratio of the picture so that it is not
//--- stretched as it is resized
hfp.LockAspectRatio =3D true;
hfp.Height =3D 20;
hfp.Width =3D 30;
=20
=20
vb.net
=20
Dim hfp As HeaderFooterPicture =3D header.GetPicture()

'--- Lock the aspect ratio of the picture so that it is not
'--- stretched as it is resized
hfp.LockAspectRatio =3D True
hfp.Height =3D 20
hfp.Width =3D 30
=20
------=_Part_8562_1539320207.1711650393774--