Пример #1
0
            object IBranch.GetObject(int row, int column, ObjectStyle style, ref int options)
            {
                BranchPartitionSection section;

                row = TranslateRow(row, out section);
                if (row == -1)
                {
                    if (style == ObjectStyle.ExpandedBranch)
                    {
                        options = 0;
                        return(new BranchPartition(myInnerBranch, myIndexer, new BranchPartitionSection(section.Start, section.Count)));
                    }
                    return(null);
                }
                return(myInnerBranch.GetObject(row, column, style, ref options));
            }
Пример #2
0
 /// <summary>
 /// Retrieve an object associated with this branch. See ObjectStyle
 /// for descriptions of the different object styles that the tree will request.
 /// </summary>
 /// <param name="row">Target row</param>
 /// <param name="column">Target column</param>
 /// <param name="style">Style of object to retrieve</param>
 /// <param name="options">Placeholder for setting/returns options. Contents depend on the style.</param>
 /// <returns>
 /// An object or null, with the type of the object determined by the style parameter.
 /// </returns>
 public object GetObject(int row, int column, ObjectStyle style, ref int options)
 {
     return(myBaseBranch.GetObject(row + myFirstItem, column, style, ref options));
 }