TemplateEngine.Docx.Processors.ContentProcessor.FindContentControls C# (CSharp) 메소드

FindContentControls() 개인적인 메소드

private FindContentControls ( System.Xml.Linq.XElement content, string tagName ) : IEnumerable
content System.Xml.Linq.XElement
tagName string
리턴 IEnumerable
		private IEnumerable<XElement> FindContentControls(XElement content, string tagName)
		{
			return content
				//top level content controls
				.FirstLevelDescendantsAndSelf(W.sdt)
				//with specified tagName
				.Where(sdt => tagName == sdt.SdtTagName());
		}
	}