size_t xtd::forms::control::get_child_index | ( | intptr | child, |
bool & | throw_exception | ||
) | const |
Retrieves the index of the specified child control within the control collection, and optionally raises an exception if the specified control is not within the control collection.
child | The control to search for in the control collection. |
throw_exception | true to throw an exception if the control specified in the child parameter is not a control in the control::control_collection; otherwise, false. |