/// <summary> /// Propogates an integer state request down the hierarchy of docking elements. /// </summary> /// <param name="state">Integer state that is requested to be recovered.</param> /// <param name="value">Value discovered from matching </param> public virtual void PropogateIntState(DockingPropogateIntState state, ref int value) { // Propogate the request to all the child elements for (int i = Count - 1; i >= 0; i--) { this[i].PropogateIntState(state, ref value); } }
/// <summary> /// Propagates an integer state request down the hierarchy of docking elements. /// </summary> /// <param name="state">Integer state that is requested to be recovered.</param> /// <param name="value">Value discovered from matching </param> public override void PropogateIntState(DockingPropogateIntState state, ref int value) { // User our value if it is the largest encountered so far value = Math.Max(value, Order); }
/// <summary> /// Propogates an integer state request down the hierarchy of docking elements. /// </summary> /// <param name="state">Integer state that is requested to be recovered.</param> /// <param name="value">Value discovered from matching </param> public override void PropogateIntState(DockingPropogateIntState state, ref int value) { // User our value if it is the largest encountered so far value = Math.Max(value, Order); }
/// <summary> /// Propogates an integer state request down the hierarchy of docking elements. /// </summary> /// <param name="state">Integer state that is requested to be recovered.</param> /// <param name="value">Value discovered from matching </param> public virtual void PropogateIntState(DockingPropogateIntState state, ref int value) { // Propogate the request to all the child elements for (int i = Count - 1; i >= 0; i--) this[i].PropogateIntState(state, ref value); }