private static void SetSectionParameters(Section section, Properties attributes) {
String value;
value = attributes[ElementTags.NUMBERDEPTH];
if (value != null) {
section.NumberDepth = int.Parse(value);
}
value = attributes[ElementTags.INDENT];
if (value != null) {
section.Indentation = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
}
value = attributes[ElementTags.INDENTATIONLEFT];
if (value != null) {
section.IndentationLeft = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
}
value = attributes[ElementTags.INDENTATIONRIGHT];
if (value != null) {
section.IndentationRight = float.Parse(value, System.Globalization.NumberFormatInfo.InvariantInfo);
}
}