SetDisplayAt() public method

public SetDisplayAt ( int displayAt ) : void
displayAt int
return void
        /**
         * Set a RtfHeaderFooter to be displayed at a certain position
         *
         * @param headerFooter The RtfHeaderFooter to display
         * @param displayAt The display location to use
         */
        public void SetHeaderFooter(RtfHeaderFooter headerFooter, int displayAt)
        {
            this.mode = MODE_MULTIPLE;
            headerFooter.SetRtfDocument(this.document);
            headerFooter.SetType(this.type);
            headerFooter.SetDisplayAt(displayAt);
            switch (displayAt)
            {
            case RtfHeaderFooter.DISPLAY_ALL_PAGES:
                headerAll = headerFooter;
                break;

            case RtfHeaderFooter.DISPLAY_FIRST_PAGE:
                headerFirst = headerFooter;
                break;

            case RtfHeaderFooter.DISPLAY_LEFT_PAGES:
                headerLeft = headerFooter;
                break;

            case RtfHeaderFooter.DISPLAY_RIGHT_PAGES:
                headerRight = headerFooter;
                break;
            }
        }
        /// <summary>
        /// Set a RtfHeaderFooter to be displayed at a certain position
        /// </summary>
        /// <param name="headerFooter">The RtfHeaderFooter to display</param>
        /// <param name="displayAt">The display location to use</param>
        public void SetHeaderFooter(RtfHeaderFooter headerFooter, int displayAt)
        {
            _mode = ModeMultiple;
            headerFooter.SetRtfDocument(_document);
            headerFooter.SetType(_type);
            headerFooter.SetDisplayAt(displayAt);
            switch (displayAt)
            {
            case RtfHeaderFooter.DISPLAY_ALL_PAGES:
                _headerAll = headerFooter;
                break;

            case RtfHeaderFooter.DISPLAY_FIRST_PAGE:
                _headerFirst = headerFooter;
                break;

            case RtfHeaderFooter.DISPLAY_LEFT_PAGES:
                _headerLeft = headerFooter;
                break;

            case RtfHeaderFooter.DISPLAY_RIGHT_PAGES:
                _headerRight = headerFooter;
                break;
            }
        }
 /**
 * Set a RtfHeaderFooter to be displayed at a certain position
 *
 * @param headerFooter The RtfHeaderFooter to display
 * @param displayAt The display location to use
 */
 public void SetHeaderFooter(RtfHeaderFooter headerFooter, int displayAt)
 {
     this.mode = MODE_MULTIPLE;
     headerFooter.SetRtfDocument(this.document);
     headerFooter.SetType(this.type);
     headerFooter.SetDisplayAt(displayAt);
     switch (displayAt) {
         case RtfHeaderFooter.DISPLAY_ALL_PAGES:
             headerAll = headerFooter;
             break;
         case RtfHeaderFooter.DISPLAY_FIRST_PAGE:
             headerFirst = headerFooter;
             break;
         case RtfHeaderFooter.DISPLAY_LEFT_PAGES:
             headerLeft = headerFooter;
             break;
         case RtfHeaderFooter.DISPLAY_RIGHT_PAGES:
             headerRight = headerFooter;
             break;
     }
 }