AODL.Document.Content.Text.XLink.TextContent_Inserted C# (CSharp) Метод

TextContent_Inserted() приватный Метод

Append the xml from added IText object.
private TextContent_Inserted ( int index, object value ) : void
index int
value object
Результат void
		private void TextContent_Inserted(int index, object value)
		{
			this.Node.AppendChild(((IText)value).Node);

			if (((IText)value).Text != null)
			{
				try
				{
					if (this.Document is AODL.Document.TextDocuments.TextDocument)
					{
						string text		= ((IText)value).Text;
						this.Document.DocumentMetadata.CharacterCount	+= text.Length;
						string[] words	= text.Split(' ');
						this.Document.DocumentMetadata.WordCount		+= words.Length;
					}
				}
				catch(Exception)
				{
					//unhandled, only word and character count wouldn' be correct
				}
			}
		}