private void ReadScrolling(XmlReader reader)
{
if (reader.HasAttributes)
{
while (reader.MoveToNextAttribute())
{
string attrName = reader.Name.ToLower();
switch (attrName)
{
case "endatlastline":
this._scrolling_EndAtLastLine = this.getBool(reader.Value);
break;
case "horizontalwidth":
this._scrolling_HorizontalWidth = this.getInt(reader.Value);
break;
case "scrollbars":
string flags = reader.Value.Trim();
if (flags != string.Empty)
{
ScrollBars? sb = null;
foreach (string flag in flags.Split(' '))
sb |= (ScrollBars)Enum.Parse(typeof(ScrollBars), flag.Trim(), true);
if (sb.HasValue)
this._scrolling_ScrollBars = sb;
}
break;
case "xoffset":
this._scrolling_XOffset = this.getInt(reader.Value);
break;
}
}
reader.MoveToElement();
}
reader.Skip();
}