コード例 #1
0
ファイル: TableEx.cs プロジェクト: zanderzhg/Sc
        public void CreateNewCol(CellValueInfo[] cellValueInfos,
                                 bool enableAutoAdjustParam      = true,
                                 LineComputeMode lineComputeMode = LineComputeMode.AUTO,
                                 float computeParam     = 0,
                                 float computedDistance = 0)
        {
            CreateNewCol(enableAutoAdjustParam, lineComputeMode, computeParam, computedDistance);

            for (int i = 0; i < rowAmount; i++)
            {
                SetCellValue(i, colAmount - 1, cellValueInfos[i]);
            }
        }
コード例 #2
0
        void AddNewCol(
            bool enableAutoAdjustRichSize   = false,
            LineComputeMode lineComputeMode = LineComputeMode.AUTO,
            float computeParam     = 0,
            float computedDistance = 0)
        {
            colAmount += 1;

            TableLine tableLine = new TableLine(LineDir.VERTICAL);

            tableLine.enableAutoAdjustRichSize = enableAutoAdjustRichSize;
            tableLine.lineComputeMode          = lineComputeMode;
            tableLine.computeParam             = computeParam;
            tableLine.computedDistance         = computedDistance;
            tableLine.maxComputedValue         = -1;
            tableLine.minComputedValue         = -1;
            colLineList.Add(tableLine);
        }
コード例 #3
0
        void AddNewRow(
            bool enableAutoAdjustRichSize   = false,
            LineComputeMode lineComputeMode = LineComputeMode.AUTO,
            float computeParam     = 0,
            float computedDistance = 0)
        {
            rowAmount += 1;

            TableLine tableLine = new TableLine(LineDir.HORIZONTAL);

            tableLine.enableAutoAdjustRichSize = enableAutoAdjustRichSize;
            tableLine.lineComputeMode          = lineComputeMode;
            tableLine.computeParam             = computeParam;
            tableLine.computedDistance         = computedDistance;
            tableLine.maxComputedValue         = -1;
            tableLine.minComputedValue         = -1;
            rowLineList.Add(tableLine);
        }
コード例 #4
0
        public void AddNewCol(TableCellData[] cellValueInfos,
                              bool enableAutoAdjustRichSize   = false,
                              LineComputeMode lineComputeMode = LineComputeMode.AUTO,
                              float computeParam     = 0,
                              float computedDistance = 0)
        {
            AddNewCol(enableAutoAdjustRichSize, lineComputeMode, computeParam, computedDistance);

            if (cellValueInfos != null)
            {
                for (int i = 0; i < rowAmount; i++)
                {
                    if (i < cellValueInfos.Length)
                    {
                        SetCellValue(i, colAmount - 1, cellValueInfos[i]);
                    }
                }
            }
        }