iTextSharp.text.HeaderFooter.SetAlignment C# (CSharp) Метод

SetAlignment() публичный Метод

Sets the alignment of this HeaderFooter.
public SetAlignment ( string alignment ) : void
alignment string the new alignment as a string
Результат void
        public void SetAlignment(string alignment) {
            if (Util.EqualsIgnoreCase(alignment, ElementTags.ALIGN_CENTER)) {
                this.alignment = Element.ALIGN_CENTER;
                return;
            }
            if (Util.EqualsIgnoreCase(alignment, ElementTags.ALIGN_RIGHT)) {
                this.alignment = Element.ALIGN_RIGHT;
                return;
            }
            if (Util.EqualsIgnoreCase(alignment, ElementTags.ALIGN_JUSTIFIED)) {
                this.alignment = Element.ALIGN_JUSTIFIED;
                return;
            }
            this.alignment = Element.ALIGN_LEFT;
        }