/// <summary> /// Append a format code to the first page footer. /// </summary> /// <param name="Code">The format code.</param> public void AppendFirstFooter(SLHeaderFooterFormatCodeValues Code) { if (this.HFSection != SLHeaderFooterSection.FirstFooter) ResetSwitches(); this.FirstFooterText += this.TextToAppend(Code); this.HFSection = SLHeaderFooterSection.FirstFooter; }
/// <summary> /// Append text to the first page footer. /// </summary> /// <param name="Text">The text to be appended.</param> public void AppendFirstFooter(string Text) { if (this.HFSection != SLHeaderFooterSection.FirstFooter) ResetSwitches(); this.FirstFooterText += Text; this.HFSection = SLHeaderFooterSection.FirstFooter; }
/// <summary> /// Append text to the first page footer. /// </summary> /// <param name="FontStyle">The font style of the text.</param> /// <param name="Text">The text to be appended.</param> public void AppendFirstFooter(SLFont FontStyle, string Text) { if (this.HFSection != SLHeaderFooterSection.FirstFooter) ResetSwitches(); this.FirstFooterText += string.Format("{0}{1}", this.StyleToAppend(FontStyle), Text); this.HFSection = SLHeaderFooterSection.FirstFooter; }
private void ResetSwitches() { this.StrikeSwitch = false; this.SuperscriptSwitch = false; this.SubscriptSwitch = false; this.UnderlineSwitch = false; this.DoubleUnderlineSwitch = false; this.FontSizeSwitch = false; this.FontColorSwitch = false; this.FontStyleSwitch = false; this.HFSection = SLHeaderFooterSection.None; }