AODL.Document.Export.Html.HTMLContentBuilder.GetWhiteSpacesAsHtml C# (CSharp) Метод

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

Gets the white spaces as HTML.
public GetWhiteSpacesAsHtml ( WhiteSpace whiteSpace ) : string
whiteSpace AODL.Document.Content.Text.TextControl.WhiteSpace The white space.
Результат string
		public string GetWhiteSpacesAsHtml(WhiteSpace whiteSpace)
		{
			string html					= "";
			int count					= 0;
			try
			{
				if (whiteSpace.Count != null)
					count				= Convert.ToInt32(whiteSpace.Count);

				for(int i=0; i<count; i++)
					html				+= "&nbsp;";
			}
			catch(Exception ex)
			{
				//send warning
				if (OnWarning != null)
				{
					AODLWarning warning			= new AODLWarning("Exception while trying to build HTML whitespaces.", ex);
					//warning.InMethod			= AODLException.GetExceptionSourceInfo(new StackFrame(1, true));				
					//warning.OriginalException	= ex;
					OnWarning(warning);
				}
			}

			return html;
		}