[Mwinapi-commits] SF.net SVN: mwinapi:[140] trunk/ManagedWinapi/Accessibility/ SystemAccessibleObje
Status: Beta
Brought to you by:
schierlm
From: <zi...@us...> - 2016-01-26 10:06:51
|
Revision: 140 http://sourceforge.net/p/mwinapi/code/140 Author: ziewer Date: 2016-01-26 10:06:48 +0000 (Tue, 26 Jan 2016) Log Message: ----------- added SystemAccessibleObject.ChildCount (because always calling iacc.accChildCount might be wrong) Modified Paths: -------------- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs Modified: trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs =================================================================== --- trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2016-01-25 19:56:53 UTC (rev 139) +++ trunk/ManagedWinapi/Accessibility/SystemAccessibleObject.cs 2016-01-26 10:06:48 UTC (rev 140) @@ -566,6 +566,21 @@ } /// <summary> + /// Get number of children. + /// </summary> + public int ChildCount + { + get + { + if (childID != 0) + // ID-referenced objects cannot have children + return 0; + else + return iacc.accChildCount; + } + } + + /// <summary> /// Highlight the accessible object with a red border. /// </summary> public void Highlight() This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |