File: winforms\Managed\System\WinForms\FormStartPosition.cs
Project: ndp\fx\src\System.Windows.Forms.csproj (System.Windows.Forms)
//------------------------------------------------------------------------------
// <copyright file="FormStartPosition.cs" company="Microsoft">
//     Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>                                                                
//------------------------------------------------------------------------------
 
/*
 */
namespace System.Windows.Forms {
 
    using System.Diagnostics;
    using System;
    using System.ComponentModel;
    using Microsoft.Win32;
    using System.Drawing;
 
 
 
    /// <include file='doc\FormStartPosition.uex' path='docs/doc[@for="FormStartPosition"]/*' />
    /// <devdoc>
    ///    <para>
    ///       Specifies the initial position of a
    ///       form.
    ///    </para>
    /// </devdoc>
    [System.Runtime.InteropServices.ComVisible(true)]
    public enum FormStartPosition {
 
        /// <include file='doc\FormStartPosition.uex' path='docs/doc[@for="FormStartPosition.Manual"]/*' />
        /// <devdoc>
        ///    <para>
        ///       
        ///       The location and size of the form will determine its
        ///       starting position.
        ///       
        ///    </para>
        /// </devdoc>
        Manual = 0,
        /// <include file='doc\FormStartPosition.uex' path='docs/doc[@for="FormStartPosition.CenterScreen"]/*' />
        /// <devdoc>
        ///    <para>
        ///       The form is centered on the current display,
        ///       and has the dimensions specified in the form's size.
        ///    </para>
        /// </devdoc>
        CenterScreen = 1,
        /// <include file='doc\FormStartPosition.uex' path='docs/doc[@for="FormStartPosition.WindowsDefaultLocation"]/*' />
        /// <devdoc>
        ///    <para>
        ///       The form is positioned at the Windows default
        ///       location and has the dimensions specified in the form's size.
        ///    </para>
        /// </devdoc>
        WindowsDefaultLocation = 2,
        /// <include file='doc\FormStartPosition.uex' path='docs/doc[@for="FormStartPosition.WindowsDefaultBounds"]/*' />
        /// <devdoc>
        ///    <para>
        ///       The form is positioned at the Windows default
        ///       location and has the bounds determined by Windows default.
        ///    </para>
        /// </devdoc>
        WindowsDefaultBounds = 3,
        /// <include file='doc\FormStartPosition.uex' path='docs/doc[@for="FormStartPosition.CenterParent"]/*' />
        /// <devdoc>
        ///    <para>
        ///       The form is centered within the bounds of its parent form.
        ///    </para>
        /// </devdoc>
        CenterParent = 4
    }
}