Back to Devexpress

StretchMode Enum

corelibraries-devexpress-dot-diagram-dot-core-fa4e289f.md

latest1.7 KB
Original Source

StretchMode Enum

Specifies whether to preserve the aspect ratio of the source image when resizing the image item.

Namespace : DevExpress.Diagram.Core

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

NuGet Package : DevExpress.Diagram.Core

Declaration

csharp
public enum StretchMode
vb
Public Enum StretchMode

Members

NameDescription
Stretch

Fit the image item while preserving the native aspect ratio of the source image.

| | Uniform |

Stretch the source image to fill the diagram image item.

| | UniformToFill |

Fill the image item while preserving the native aspect ratio of the source image. The image is clipped if its aspect ratio differs from the image item.

|

The following properties accept/return StretchMode values:

LibraryRelated API Members
WinForms ControlsDiagramImage.StretchMode
WPF ControlsDiagramImage.StretchMode

Remarks

Values listed by this enumeration are used to set the DiagramImage.StretchMode and DiagramImage.StretchMode properties.

See Also

DevExpress.Diagram.Core Namespace