private static short _get_num_rows_for_section(IVisio.Shape shape, SubQuery subquery) { // For visSectionObject we know the result is always going to be 1 // so avoid making the call tp RowCount[] if (subquery.SectionIndex == IVisio.VisSectionIndices.visSectionObject) { return(1); } // For all other cases use RowCount[] return(shape.RowCount[(short)subquery.SectionIndex]); }
internal SubQuerySectionDetails(SubQuery subquery, int numrows) { this.SubQuery = subquery; this.RowCount = numrows; }