AODL.Document.TextDocuments.TextDocument.FindControlByName C# (CSharp) Method

FindControlByName() public method

Looks for a specific control through all the forms by its name
public FindControlByName ( string name ) : ODFFormControl
name string
return AODL.Document.Forms.Controls.ODFFormControl
		public ODFFormControl FindControlByName(string name)
		{
			foreach (ODFForm f in Forms)
			{
				ODFFormControl fc = f.FindControlByName(name, true);
				if (fc !=null)
					return fc;
			}
			return null;
		}