Partilhar via


Graphic.LockAspectRatio Property

True if the specified shape retains its original proportions when you resize it. False if you can change the height and width of the shape independently of one another when you resize it.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property LockAspectRatio As MsoTriState
    Get
    Set
'Usage
Dim instance As Graphic
Dim value As MsoTriState

value = instance.LockAspectRatio

instance.LockAspectRatio = value
MsoTriState LockAspectRatio { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoTriState

Remarks

MsoTriState can be one of the following MsoTriState constants:

msoCTrue

msoFalse You can change the height and width of the shape independently of one another when you resize it.

msoTriStateMixed

msoTriStateToggle

msoTrue The specified shape retains its original proportions when you resize it.

See Also

Reference

Graphic Interface

Graphic Members

Microsoft.Office.Interop.Excel Namespace