Пример #1
0
        bool IsValueVisible(int index)
        {
            if (!this.ShowHiddenData)
            {
                Worksheet sheet = this.Sheet as Worksheet;
                if (sheet != null)
                {
                    switch (this.DataOrientation)
                    {
                    case Dt.Cells.Data.DataOrientation.Vertical:
                        if (sheet.GetActualColumnWidth(this.anchorLine, SheetArea.Cells) <= 0.0)
                        {
                            return(false);
                        }
                        return(sheet.GetActualRowHeight(this.start + index, SheetArea.Cells) > 0.0);

                    case Dt.Cells.Data.DataOrientation.Horizontal:
                        if (sheet.GetActualRowHeight(this.anchorLine, SheetArea.Cells) <= 0.0)
                        {
                            return(false);
                        }
                        return(sheet.GetActualColumnWidth(this.start + index, SheetArea.Cells) > 0.0);
                    }
                }
            }
            return(true);
        }