GitUI.GitExtensionsForm.RestorePosition C# (CSharp) Метод

RestorePosition() защищенный Метод

Restores the position of a form from the user settings. Does nothing if there is no entry for the form in the settings, or the setting would be invisible on the current display configuration.
protected RestorePosition ( String name ) : void
name String The name to use when looking up the position in /// the settings
Результат void
        protected void RestorePosition(String name)
        {
            var position = LookupWindowPosition(name);

            if (position == null)
                return;

            StartPosition = FormStartPosition.Manual;
            DesktopBounds = position.Rect;
            WindowState = position.State;
        }