iTextSharp.text.factories.ElementFactory.SetSectionParameters C# (CSharp) Метод

SetSectionParameters() приватный статический Метод

private static SetSectionParameters ( Section section, Properties attributes ) : void
section iTextSharp.text.Section
attributes System.util.Properties
Результат void
        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);
            }
        }