public static List GetList(Properties attributes) {
List list = new List();
list.Numbered = Utilities.CheckTrueOrFalse(attributes, ElementTags.NUMBERED);
list.Lettered = Utilities.CheckTrueOrFalse(attributes, ElementTags.LETTERED);
list.Lowercase = Utilities.CheckTrueOrFalse(attributes, ElementTags.LOWERCASE);
list.Autoindent = Utilities.CheckTrueOrFalse(attributes, ElementTags.AUTO_INDENT_ITEMS);
list.Alignindent = Utilities.CheckTrueOrFalse(attributes, ElementTags.ALIGN_INDENTATION_ITEMS);
String value;
value = attributes[ElementTags.FIRST];
if (value != null) {
char character = value[0];
if (char.IsLetter(character) ) {
list.First = (int)character;
}
else {
list.First = int.Parse(value);
}
}
value = attributes[ElementTags.LISTSYMBOL];
if (value != null) {
list.ListSymbol = new Chunk(value, FontFactory.GetFont(attributes));
}
value = attributes[ElementTags.INDENTATIONLEFT];
if (value != null) {
list.IndentationLeft = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
}
value = attributes[ElementTags.INDENTATIONRIGHT];
if (value != null) {
list.IndentationRight = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
}
value = attributes[ElementTags.SYMBOLINDENT];
if (value != null) {
list.SymbolIndent = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
}
return list;
}