src/Misc/EFTools/DesignXmlCore/Base/Shell/TreeGridDesignerBranch.cs
/// <summary>
///     Retrieve accessibility data for the item at the given row, column
/// </summary>
/// <param name="row">Target row</param>
/// <param name="column">Target column</param>
/// <returns>Populated VirtualTreeAccessibilityData structue, or VirtualTreeAccessibilityData.Empty</returns>
Retrieve accessibility data for the item at the given row, column
Retrieve accessibility data for the item at the given row column
protected virtual VirtualTreeAccessibilityData GetAccessibilityData(int row, int column)
        {
            if (_columns[column].ColumnIsCheckBox)
            {
                return new VirtualTreeAccessibilityData(
                    "{0} {5}", _descriptionAccessibilityReplacementFields,
                    Resources.MappingDetails_Up_And_Down, new AccessibilityReplacementField[0],
                    Resources.MappingDetails_Up_And_Down);
            }
            var eltCount = ElementCount;
            if (_insertingIndex != -1)
            {
                eltCount++;
            }
            if (row < eltCount)
            {
                if (column == 0)
                {
                    return new VirtualTreeAccessibilityData(
                        "{1}, {3} {0}", _descriptionAccessibilityReplacementFields,
                        Resources.MappingDetails_Up_And_Down, new AccessibilityReplacementField[0],
                        Resources.MappingDetails_Up_And_Down);
                }
                else
                {
                    return new VirtualTreeAccessibilityData(
                        "{3} {0}", _descriptionAccessibilityReplacementFields,
                        Resources.MappingDetails_Up_And_Down, new AccessibilityReplacementField[0],
                        Resources.MappingDetails_Up_And_Down);
                }
            }
            else
            {
                return new VirtualTreeAccessibilityData(
                    "{1}, {3}", _descriptionAccessibilityReplacementFields,
                    Resources.MappingDetails_Up_And_Down, new AccessibilityReplacementField[0],
                    Resources.MappingDetails_Up_And_Down);
            }
        }
protected virtual VirtualTreeAccessibilityData GetAccessibilityData ( int row , int column ) { if ( _columns [ column ] . ColumnIsCheckBox ) { return new VirtualTreeAccessibilityData ( " " , _descriptionAccessibilityReplacementFields , Resources . MappingDetails_Up_And_Down , new AccessibilityReplacementField [ 0 ] , Resources . MappingDetails_Up_And_Down ) ; } var eltCount = ElementCount ; if ( _insertingIndex != - 1 ) { eltCount ++ ; } if ( row < eltCount ) { if ( column == 0 ) { return new VirtualTreeAccessibilityData ( " " , _descriptionAccessibilityReplacementFields , Resources . MappingDetails_Up_And_Down , new AccessibilityReplacementField [ 0 ] , Resources . MappingDetails_Up_And_Down ) ; } else { return new VirtualTreeAccessibilityData ( " " , _descriptionAccessibilityReplacementFields , Resources . MappingDetails_Up_And_Down , new AccessibilityReplacementField [ 0 ] , Resources . MappingDetails_Up_And_Down ) ; } } else { return new VirtualTreeAccessibilityData ( " " , _descriptionAccessibilityReplacementFields , Resources . MappingDetails_Up_And_Down , new AccessibilityReplacementField [ 0 ] , Resources . MappingDetails_Up_And_Down ) ; } }
Retrieve accessibility data for the item at the given row, column
Retrieve accessibility data for the item at the given row column
// check box - {column header} {state image text} // tree accessibility is implemented such that the first column is an outline item, others // are cells.  For outline items, we include the display text as part of the name field, because // we can't put it in the value field.  For cells, the tree control already supplies the // display text as the value, so we don't include this as part of the name field. // standard outline item - {display text} {row} {column header} // standard cell - {row} {column header}.  Note that text in the cell is already reported in the value field of the accessible object. // creator row - {display text} {row}
Populated VirtualTreeAccessibilityData structue, or VirtualTreeAccessibilityData.Empty
Populated VirtualTreeAccessibilityData structue or VirtualTreeAccessibilityData . Empty
row
int
None
column
int
None