private void ReadWhitespace(XmlReader reader)
{
if (reader.HasAttributes)
{
while (reader.MoveToNextAttribute())
{
string attrName = reader.Name.ToLower();
switch (attrName)
{
case "backcolor":
this._whitespace_BackColor = this.getColor(reader.Value);
break;
case "forecolor":
this._whitespace_ForeColor = this.getColor(reader.Value);
break;
case "mode":
this._whitespace_Mode = (WhitespaceMode)Enum.Parse(typeof(WhitespaceMode), reader.Value, true);
break;
}
}
}
reader.Skip();
}