Exemplo n.º 1
0
 // look up information on the specified property, returns true if found, else false
 internal static bool GetAttributeInfo(AutomationTextAttribute id, out AutomationAttributeInfo info)
 {
     foreach (AutomationAttributeInfo ai in _attributeInfoTable)
     {
         if (ai.ID == id)
         {
             info = ai;
             return(true);
         }
     }
     info = null;
     Debug.Assert(false, "GetAttributeInfo failed " + id);
     return(false);
 }
Exemplo n.º 2
0
 // look up information on the specified property, returns true if found, else false
 internal static bool GetAttributeInfo( AutomationTextAttribute id, out AutomationAttributeInfo info )
 {
     foreach( AutomationAttributeInfo ai in _attributeInfoTable )
     {
         if( ai.ID == id )
         {
             info = ai;
             return true;
         }
     }
     info = null;
     Debug.Assert( false, "GetAttributeInfo failed " + id );
     return false;
 }