VintaSoft Imaging .NET SDK 15.2: Documentation for .NET developer
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / CenterImage Property
Syntax Remarks Requirements SeeAlso
In This Topic
CenterImage Property (WpfImageViewer)
In This Topic
Gets or sets a value indicating whether the image is centered in the control when image is loading.
Syntax
'Declaration

<DescriptionAttribute("A value indicating whether the image is centered in the control when image is loading.")>
<CategoryAttribute("VintaSoft")>
<DefaultValueAttribute(False)>
Public Property CenterImage As Boolean

[Description("A value indicating whether the image is centered in the control when image is loading.")]
[Category("VintaSoft")]
[DefaultValue(False)]
public bool CenterImage { get; set; }

Property Value

true - the image is centered in the control; false - the image is not centered in the control.

Default value is false.
Remarks

Image is centered in image viewer immediately when value of this property is set to true.

Requirements

Target Platforms: .NET 11; .NET 10; .NET 9; .NET 8; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also