// --------------------------------------------------------------------------------------------
        /// <summary>
        /// Converts a VsDockStyle enum to string.
        /// </summary>
        // --------------------------------------------------------------------------------------------
        private static string StyleToString(VsDockStyle style)
        {
            switch (style)
            {
            case VsDockStyle.MDI:
                return("MDI");

            case VsDockStyle.Float:
                return("Float");

            case VsDockStyle.Linked:
                return("Linked");

            case VsDockStyle.Tabbed:
                return("Tabbed");

            case VsDockStyle.AlwaysFloat:
                return("AlwaysFloat");

            case VsDockStyle.none:
                return(string.Empty);

            default:
                throw new ArgumentException(string.Format(Resources.Culture, Resources.Attributes_UnknownDockingStyle, style));
            }
        }
        private string StyleToString(VsDockStyle style)
        {
            switch (style)
            {
            case VsDockStyle.MDI: return("MDI");

            case VsDockStyle.Float: return("Float");

            case VsDockStyle.Linked: return("Linked");

            case VsDockStyle.Tabbed: return("Tabbed");

            case VsDockStyle.AlwaysFloat: return("AlwaysFloat");

            case VsDockStyle.none: return(string.Empty);

            default:
                // TODO: error message
                throw new ArgumentException("Style");
            }
        }
        /// <summary>
        /// Convert enum to string
        /// </summary>
        private string StyleToString(VsDockStyle style)
        {
            switch (style)
            {
            case VsDockStyle.MDI:
            {
                return("MDI");
            }

            case VsDockStyle.Float:
            {
                return("Float");
            }

            case VsDockStyle.Linked:
            {
                return("Linked");
            }

            case VsDockStyle.Tabbed:
            {
                return("Tabbed");
            }

            case VsDockStyle.AlwaysFloat:
            {
                return("AlwaysFloat");
            }

            case VsDockStyle.none:
            {
                return(string.Empty);
            }

            default:
                throw new ArgumentException(SR.GetString(SR.Attributes_UnknownDockingStyle, style));
            }
        }
 /// <summary>
 /// Convert enum to string
 /// </summary>
 private string StyleToString(VsDockStyle style)
 {
     switch (style)
     {
         case VsDockStyle.MDI:
         {
             return "MDI";
         }
         case VsDockStyle.Float:
         {
             return "Float";
         }
         case VsDockStyle.Linked:
         {
             return "Linked";
         }
         case VsDockStyle.Tabbed:
         {
             return "Tabbed";
         }
         case VsDockStyle.AlwaysFloat:
         {
             return "AlwaysFloat";
         }
         case VsDockStyle.none:
         {
             return string.Empty;
         }
         default:
             throw new ArgumentException(SR.GetString(SR.Attributes_UnknownDockingStyle, style));
     }
 }
 private string StyleToString(VsDockStyle style)
 {
     switch (style)
     {
         case VsDockStyle.MDI: return "MDI";
         case VsDockStyle.Float: return "Float";
         case VsDockStyle.Linked: return "Linked";
         case VsDockStyle.Tabbed: return "Tabbed";
         case VsDockStyle.AlwaysFloat: return "AlwaysFloat";
         case VsDockStyle.none: return string.Empty;
         default:
             // TODO: error message
             throw new ArgumentException("Style");
     }
 }
 // --------------------------------------------------------------------------------------------
 /// <summary>
 /// Converts a VsDockStyle enum to string.
 /// </summary>
 // --------------------------------------------------------------------------------------------
 private static string StyleToString(VsDockStyle style)
 {
     switch (style)
       {
     case VsDockStyle.MDI:
     return "MDI";
     case VsDockStyle.Float:
     return "Float";
     case VsDockStyle.Linked:
     return "Linked";
     case VsDockStyle.Tabbed:
     return "Tabbed";
     case VsDockStyle.AlwaysFloat:
     return "AlwaysFloat";
     case VsDockStyle.none:
     return string.Empty;
     default:
       throw new ArgumentException(string.Format(Resources.Culture, Resources.Attributes_UnknownDockingStyle, style));
       }
 }