Example #1
0
 private void CopyText(ExcelHeaderFooterText from, ExcelHeaderFooterText to)
 {
     if (from == null)
     {
         return;
     }
     to.LeftAlignedText  = from.LeftAlignedText;
     to.CenteredText     = from.CenteredText;
     to.RightAlignedText = from.RightAlignedText;
 }
Example #2
0
        private string GetText(ExcelHeaderFooterText headerFooter)
        {
            string ret = "";

            if (headerFooter.LeftAlignedText != null)
            {
                ret += "&L" + headerFooter.LeftAlignedText;
            }
            if (headerFooter.CenteredText != null)
            {
                ret += "&C" + headerFooter.CenteredText;
            }
            if (headerFooter.RightAlignedText != null)
            {
                ret += "&R" + headerFooter.RightAlignedText;
            }
            return(ret);
        }
Example #3
0
        /// <summary>
        /// Helper function for Save
        /// </summary>
        /// <param name="inStruct"></param>
        /// <returns></returns>
        protected internal string GetHeaderFooterText(ExcelHeaderFooterText inStruct)
        {
            string retValue = "";

            if (inStruct.LeftAlignedText != null)
            {
                retValue += "&L" + inStruct.LeftAlignedText;
            }
            if (inStruct.CenteredText != null)
            {
                retValue += "&C" + inStruct.CenteredText;
            }
            if (inStruct.RightAlignedText != null)
            {
                retValue += "&R" + inStruct.RightAlignedText;
            }
            return(retValue);
        }
Example #4
0
 /// <summary>
 /// Helper function for Save
 /// </summary>
 /// <param name="inStruct"></param>
 /// <returns></returns>
 protected internal string GetHeaderFooterText(ExcelHeaderFooterText inStruct)
 {
     string retValue = "";
     if (inStruct.LeftAlignedText != null)
         retValue += "&L" + inStruct.LeftAlignedText;
     if (inStruct.CenteredText != null)
         retValue += "&C" + inStruct.CenteredText;
     if (inStruct.RightAlignedText != null)
         retValue += "&R" + inStruct.RightAlignedText;
     return retValue;
 }
Example #5
0
		private string GetText(ExcelHeaderFooterText headerFooter)
		{
			string ret = "";
			if (headerFooter.LeftAlignedText != null)
				ret += "&L" + headerFooter.LeftAlignedText;
			if (headerFooter.CenteredText != null)
				ret += "&C" + headerFooter.CenteredText;
			if (headerFooter.RightAlignedText != null)
				ret += "&R" + headerFooter.RightAlignedText;
			return ret;
		}