iTextSharp.text.rtf.list.RtfList.CorrectIndentation C# (CSharp) Method

CorrectIndentation() protected method

protected CorrectIndentation ( ) : void
return void
        protected internal void CorrectIndentation() {
            // TODO: Fix
    //        if (this.parentList != null) {
    //            this.leftIndent = this.leftIndent + this.parentList.GetLeftIndent() + this.parentList.GetFirstIndent();
    //        }
            for (int i = 0; i < this.items.Count; i++) {
                if (this.items[i] is RtfList) {
                    ((RtfList) this.items[i]).CorrectIndentation();
                } else if (this.items[i] is RtfListItem) {
                    ((RtfListItem) this.items[i]).CorrectIndentation();
                }
            }
        }