System.Windows.Forms.AccessibleObject.GetChildCount()

Here are the examples of the csharp api class System.Windows.Forms.AccessibleObject.GetChildCount() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

5 Examples 7

1. Example

View license
public override int GetChildCount()
            {
                if (_containerControl._focusAndAccessibilityController != null)
                    return _containerControl._focusAndAccessibilityController.Count;
                else
                    return base.GetChildCount();
            }

2. Example

View license
public override AccessibleObject GetChild(int index)
            {
                ActivityPreviewDesigner activityCollectionDesigner = base.ActivityDesigner as ActivityPreviewDesigner;
                if (activityCollectionDesigner != null && activityCollectionDesigner.ActiveDesigner == activityCollectionDesigner)
                {
                    if (index < activityCollectionDesigner.previewStrip.AccessibilityObjects.Length)
                        return activityCollectionDesigner.previewStrip.AccessibilityObjects[index];
                    index -= activityCollectionDesigner.previewStrip.AccessibilityObjects.Length;

                    if (activityCollectionDesigner.ShowPreview && index == 0)
                        return activityCollectionDesigner.previewWindow.AccessibilityObject;

                    AccessibleObject accessibilityObject = activityCollectionDesigner.PreviewedDesigner.AccessibilityObject;
                    while (accessibilityObject.Bounds.Size.IsEmpty && accessibilityObject.GetChildCount() > 0)
                        accessibilityObject = accessibilityObject.GetChild(0);

                    return accessibilityObject;
                }

                return base.GetChild(index);
            }

3. Example

Project: referencesource
Source File: DesignerWidgets.cs
View license
public override AccessibleObject Navigate(AccessibleNavigation navdir)
            {
               /n ..... /n //View Source file for more details /n }

4. Example

Project: referencesource
Source File: DesignerWidgets.cs
View license
public override AccessibleObject Navigate(AccessibleNavigation navdir)
            {
                if (navdir == AccessibleNavigation.Previous)
                {
                    int childCount = this.previewWindow.parentDesigner.AccessibilityObject.GetChildCount();
                    if ((childCount - 3) >= 0)
                        return this.previewWindow.parentDesigner.AccessibilityObject.GetChild(childCount - 3);
                }
                else if (navdir == AccessibleNavigation.Next)
                {
                    if (!this.previewWindow.PreviewMode)
                    {
                        int childCount = this.previewWindow.parentDesigner.AccessibilityObject.GetChildCount();
                        if ((childCount - 1) >= 0)
                            return this.previewWindow.parentDesigner.AccessibilityObject.GetChild(childCount - 1);
                    }
                    else
                    {
                        return this.previewWindow.parentDesigner.AccessibilityObject.Navigate(navdir);
                    }
                }

                return base.Navigate(navdir);
            }

5. Example

View license
public override AccessibleObject Navigate(AccessibleNavigation navdir)
        {
            if (nav/n ..... /n //View Source file for more details /n }