IContainer Interface
Definition
Section titled “Definition”A simple container for controls.
public interface IContainer : IList<ControlBase>, ICollection<ControlBase>, IEnumerable<ControlBase>, IEnumerableProperties
Section titled “Properties”AbsolutePosition
Section titled “AbsolutePosition”Gets the position of the container based on any parents position.
Point AbsolutePosition { get; }The host owning this container.
ControlHost? Host { get; }this[string]
Section titled “this[string]”Gets a control by its Name property.
ControlBase this[string name] { get; }Methods
Section titled “Methods”HasNamedControl(string)
Section titled “HasNamedControl(string)”Checks whether or not the container has a control registered with the given name.
bool HasNamedControl(string name)Parameters
Section titled “Parameters”name string
The name to check.
Returns
Section titled “Returns”bool
true when the control is found; otherwise false.
HasNamedControl(string, out ControlBase?)
Section titled “HasNamedControl(string, out ControlBase?)”Checks whether or not the container has a control registered with the given name. If found, the instance is assigned to the control parameter.
bool HasNamedControl(string name, out ControlBase? control)Parameters
Section titled “Parameters”name string
The name to check.
control ControlBase
The control instance found.
Returns
Section titled “Returns”bool
true when the control is found; otherwise false.
GetNamedControl(string)
Section titled “GetNamedControl(string)”Gets a control by its Name property.
ControlBase GetNamedControl(string name)Parameters
Section titled “Parameters”name string
The name of the control.
Returns
Section titled “Returns”ControlBase
The control.