Beispiel #1
0
 /// <summary>
 /// Determines whether this ControlToPositionAssociation contains a specific value.
 /// </summary>
 /// <param name="value">
 /// The Position value to locate in this ControlToPositionAssociation.
 /// </param>
 /// <returns>
 /// true if this ControlToPositionAssociation contains an element with the specified value;
 /// otherwise, false.
 /// </returns>
 public virtual bool ContainsValue(LinkedControlValue value)
 {
     foreach (LinkedControlValue item in this.Dictionary.Values)
     {
         if (item == value)
         {
             return(true);
         }
     }
     return(false);
 }
Beispiel #2
0
 /// <summary>
 /// Adds an element with the specified key and value to this ControlToPositionAssociation.
 /// </summary>
 /// <param name="key">
 /// The Control key of the element to add.
 /// </param>
 /// <param name="value">
 /// The Position value of the element to add.
 /// </param>
 public virtual void Add(Control key, LinkedControlValue value)
 {
     this.Dictionary.Add(key, value);
 }
Beispiel #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <returns></returns>
 public bool Equals(LinkedControlValue other)
 {
     return(mPosition == other.mPosition &&
            m_bUseCellBorder == other.m_bUseCellBorder &&
            mScrollMode == other.mScrollMode);
 }