VintaSoft Imaging .NET SDK 12.4: 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; }
    
    
    [Description("A value indicating whether the image is centered in the control when image is loading.")]
    [Category("VintaSoft")]
    [DefaultValue(False)]
    public: __property bool get_CenterImage();
    public: __property void set_CenterImage(
    bool value
    );
    [Description("A value indicating whether the image is centered in the control when image is loading.")]
    [Category("VintaSoft")]
    [DefaultValue(False)]
    public:
    property bool CenterImage { bool get(); void set(bool value); }

    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 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

    See Also