AODL.Document.Content.Text.Paragraph.GetGlobalStyleElement C# (CSharp) Method

GetGlobalStyleElement() private method

Gets the global style element.
private GetGlobalStyleElement ( XmlNode node, string style ) : string
node System.Xml.XmlNode The node.
style string The style.
return string
		private string GetGlobalStyleElement(XmlNode node, string style)
		{
			try
			{
				XmlNode elementNode = node.SelectSingleNode(style,
					this.Document.NamespaceManager);

				if (elementNode != null)
					if (elementNode.InnerText != null)
						return elementNode.InnerText;
						
			}
			catch(Exception)
			{
				//Console.WriteLine("GetGlobalStyleElement: {0}", ex.Message);
			}
			return null;
		}