ARCed.Scintilla.Configuration.Configuration.ReadCaret C# (CSharp) Method

ReadCaret() private method

private ReadCaret ( XmlReader reader ) : void
reader XmlReader
return void
        private void ReadCaret(XmlReader reader)
        {
            if (reader.HasAttributes)
            {
                while (reader.MoveToNextAttribute())
                {
                    string attrName = reader.Name.ToLower();
                    switch (attrName)
                    {
                        case "blinkrate":
                            //	This guy is a bit of an oddball becuase null means "I don't Care"
                            //	and we need some way of using the OS value.
                            string blinkRate = reader.Value;
                            this._caret_BlinkRate = blinkRate.ToLower() == "system" ?
                                SystemInformation.CaretBlinkTime : this.getInt(blinkRate);
                            break;
                        case "color":
                            this._caret_Color = this.getColor(reader.Value);
                            break;
                        case "currentlinebackgroundalpha":
                            this._caret_CurrentLineBackgroundAlpha = this.getInt(reader.Value);
                            break;
                        case "currentlinebackgroundcolor":
                            this._caret_CurrentLineBackgroundColor = this.getColor(reader.Value);
                            break;
                        case "highlightcurrentline":
                            this._caret_HighlightCurrentLine = this.getBool(reader.Value);
                            break;
                        case "issticky":
                            this._caret_IsSticky = this.getBool(reader.Value);
                            break;
                        case "style":
                            this._caret_Style = (CaretStyle)Enum.Parse(typeof(CaretStyle), reader.Value, true);
                            break;
                        case "width":
                            this._caret_Width = this.getInt(reader.Value);
                            break;
                    }
                }
                reader.MoveToElement();
            }
            reader.Skip();
        }