src/Misc/EFTools/DesignXmlCore/VirtualTreeGrid/UI/VirtualTreeControl.cs
/// <summary>
///     Get the accessible object for this location in the control.
/// </summary>
/// <param name="row">The given row</param>
/// <param name="column">The given column</param>
/// <param name="nonPermutedColumn">
///     true if column is a non-permuted column value. If this
///     is true, then the column is always interpreted as if ColumnPermutation were not set.
///     However, note that the current ColumnPermutation is used to generate an accessibility
///     object that represents the state of the current tree.
/// </param>
/// <returns></returns>
Get the accessible object for this location in the control.
Get the accessible object for this location in the control .
public AccessibleObject GetAccessibleObject(int row, int column, bool nonPermutedColumn)
        {
            var settings = AccItemSettings.None;
            var displayColumn = column;
            var nativeColumn = column;
            var colPerm = myColumnPermutation;
            if (myMctree != null)
            {
                if (colPerm != null)
                {
                    if (nonPermutedColumn)
                    {
                        displayColumn = colPerm.GetPermutedColumn(nativeColumn);
                        if (displayColumn == -1)
                        {
                            displayColumn = 0;
                            settings |= AccItemSettings.HiddenItem;
                        }
                    }
                    else
                    {
                        nativeColumn = colPerm.GetNativeColumn(displayColumn);
                    }
                }
                var expansion = myTree.GetBlankExpansion(row, displayColumn, colPerm);
                row = expansion.TopRow;
                displayColumn = expansion.AnchorColumn;
                if (displayColumn == VirtualTreeConstant.NullIndex)
                {
                    displayColumn = 0;
                }
                else
                {
                    nativeColumn = (colPerm != null) ? colPerm.GetNativeColumn(displayColumn) : displayColumn;
                }
            }
            var info = Tree.GetItemInfo(row, nativeColumn, true);
            Debug.Assert(!info.Blank);
            if (info.Blank)
            {
                return null;
            }
            else if (info.Column > 0)
            {
                return AccTreeRoot.GetColumnObject(this, row, nativeColumn - info.Column, info.Column, false);
            }
            else
            {
                return new AccPrimaryItem(this, row, displayColumn, nativeColumn, settings, ref info);
            }
        }
public AccessibleObject GetAccessibleObject ( int row , int column , bool nonPermutedColumn ) { var settings = AccItemSettings . None ; var displayColumn = column ; var nativeColumn = column ; var colPerm = myColumnPermutation ; if ( myMctree != null ) { if ( colPerm != null ) { if ( nonPermutedColumn ) { displayColumn = colPerm . GetPermutedColumn ( nativeColumn ) ; if ( displayColumn == - 1 ) { displayColumn = 0 ; settings |= AccItemSettings . HiddenItem ; } } else { nativeColumn = colPerm . GetNativeColumn ( displayColumn ) ; } } var expansion = myTree . GetBlankExpansion ( row , displayColumn , colPerm ) ; row = expansion . TopRow ; displayColumn = expansion . AnchorColumn ; if ( displayColumn == VirtualTreeConstant . NullIndex ) { displayColumn = 0 ; } else { nativeColumn = ( colPerm != null ) ? colPerm . GetNativeColumn ( displayColumn ) : displayColumn ; } } var info = Tree . GetItemInfo ( row , nativeColumn , true ) ; Debug . Assert ( ! info . Blank ) ; if ( info . Blank ) { return null ; } else if ( info . Column > 0 ) { return AccTreeRoot . GetColumnObject ( this , row , nativeColumn - info . Column , info . Column , false ) ; } else { return new AccPrimaryItem ( this , row , displayColumn , nativeColumn , settings , ref info ) ; } }
Get the accessible object for this location in the control.
Get the accessible object for this location in the control .
None
row
int
The given row
The given row
column
int
The given column
The given column
nonPermutedColumn
bool
true if column is a non-permuted column value. If this
is true, then the column is always interpreted as if ColumnPermutation were not set.
However, note that the current ColumnPermutation is used to generate an accessibility
object that represents the state of the current tree.
true if column is a non - permuted column value . If this is true then the column is always interpreted as if ColumnPermutation were not set . However note that the current ColumnPermutation is used to generate an accessibility object that represents the state of the current tree .