AODL.Document.Forms.ODFForm.FindControlById C# (CSharp) Метод

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

Looks up a control by its ID
public FindControlById ( string id, bool searchInSubforms ) : ODFFormControl
id string Control ID
searchInSubforms bool Specifies whether to look in the subforms
Результат AODL.Document.Forms.Controls.ODFFormControl
		public ODFFormControl FindControlById (string id, bool searchInSubforms)
		{
			if (searchInSubforms)
			{
				foreach (ODFForm f in ChildForms)
				{
					ODFFormControl ctrl;
					ctrl = f.FindControlById(id, searchInSubforms);
					if (ctrl != null) return ctrl;
				}
			}
			foreach (ODFFormControl c in _controls)
			{
				if ( c != null)
				{
					if (c.ID == id)
						return c;
				}
			}
			return null;
		}