ARCed.Scintilla.Configuration.Configuration.ReadIndentation C# (CSharp) Метод

ReadIndentation() приватный Метод

private ReadIndentation ( XmlReader reader ) : void
reader XmlReader
Результат void
        private void ReadIndentation(XmlReader reader)
        {
            if (reader.HasAttributes)
            {
                while (reader.MoveToNextAttribute())
                {
                    string attrName = reader.Name.ToLower();
                    switch (attrName)
                    {
                        case "backspaceunindents":
                            this._indentation_BackspaceUnindents = this.getBool(reader.Value);
                            break;
                        case "indentwidth":
                            this._indentation_IndentWidth = this.getInt(reader.Value);
                            break;
                        case "showguides":
                            this._indentation_ShowGuides = this.getBool(reader.Value);
                            break;
                        case "tabindents":
                            this._indentation_TabIndents = this.getBool(reader.Value);
                            break;
                        case "tabwidth":
                            this._indentation_TabWidth = this.getInt(reader.Value);
                            break;
                        case "usetabs":
                            this._indentation_UseTabs = this.getBool(reader.Value);
                            break;
                        case "smartindenttype":
                            this._indentation_SmartIndentType = (SmartIndent)Enum.Parse(typeof(SmartIndent), reader.Value, true);
                            break;
                    }
                }

                reader.MoveToElement();
            }

            reader.Skip();
        }