VintaSoft Imaging .NET SDK 12.4: Documentation for .NET developer
Vintasoft.Imaging.UI Namespace / ImageViewer Class / CenterImage Property
Syntax Remarks Requirements SeeAlso
In This Topic
    CenterImage Property (ImageViewer)
    In This Topic
    Gets or sets a value indicating whether the image is centered in the viewer.
    Syntax
    'Declaration
    
    <DescriptionAttribute("A value indicating whether the image is centered in the viewer.")>
    <CategoryAttribute("VintaSoft")>
    <DefaultValueAttribute(False)>
    Public Property CenterImage As Boolean
    
    
    [Description("A value indicating whether the image is centered in the viewer.")]
    [Category("VintaSoft")]
    [DefaultValue(False)]
    public bool CenterImage { get; set; }
    
    
    [Description("A value indicating whether the image is centered in the viewer.")]
    [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 viewer.")]
    [Category("VintaSoft")]
    [DefaultValue(False)]
    public:
    property bool CenterImage { bool get(); void set(bool value); }

    Property Value

    True - the image is centered in the viewer; false - the image is NOT centered in the viewer.

    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