VintaSoft Imaging .NET SDK v8.6
Vintasoft.Imaging.Wpf.UI Namespace / WpfImageViewer Class / CenterImage Property



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("Enables or disables centering of image in the viewer.")>
    <CategoryAttribute("VintaSoft")>
    <DefaultValueAttribute()>
    Public Property CenterImage As Boolean
    [Description("Enables or disables centering of image in the viewer.")]
    [Category("VintaSoft")]
    [DefaultValue()]
    public bool CenterImage {get; set;}
    [Description("Enables or disables centering of image in the viewer.")]
    [Category("VintaSoft")]
    [DefaultValue()]
    public: __property bool get_CenterImage();
    public: __property void set_CenterImage( 
       bool value
    );
    [Description("Enables or disables centering of image in the viewer.")]
    [Category("VintaSoft")]
    [DefaultValue()]
    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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also