Back to Devexpress

DrawingObject.LockAspectRatio Property

officefileapi-devexpress-dot-xtrarichedit-dot-api-dot-native-dot-drawingobject-a427b13b.md

latest1.8 KB
Original Source

DrawingObject.LockAspectRatio Property

Specifies whether to maintain proportions of a shape when you resize it.

Namespace : DevExpress.XtraRichEdit.API.Native

Assembly : DevExpress.RichEdit.v25.2.Core.dll

NuGet Package : DevExpress.RichEdit.Core

Declaration

csharp
bool LockAspectRatio { get; set; }
vb
Property LockAspectRatio As Boolean

Property Value

TypeDescription
Boolean

true if a shape retains its original proportions when you resize it; otherwise, false.

|

Remarks

To resize a shape proportionally, set the LockAspectRatio property to true and specify the shape’s Width or Height. The other dimension changes to a value that maintains the shape proportions.

The LockAspectRatio property value is ignored if you use the DrawingObject.Size property to specify the shape size.

See Also

DrawingObject Interface

DrawingObject Members

DevExpress.XtraRichEdit.API.Native Namespace