Example #1
0
 /// <summary>
 /// Create action that perform setting border to a range
 /// </summary>
 /// <param name="range">Range to be appiled this action</param>
 /// <param name="pos">Position of range to set border</param>
 /// <param name="style">Style of border</param>
 public RGSetRangeBorderAction(ReoGridRange range, ReoGridBorderPos pos, ReoGridBorderStyle style)
     : this(range, new ReoGridBorderPosStyle[] { new ReoGridBorderPosStyle(pos, style) })
 {
 }
Example #2
0
        public void CheckBorderStyle(ReoGridBorderPos pos)
        {
            ProcessBorderStyles(pos, p =>
            {
                borders[p] = new ReoGridBorderStyle
                {
                    Style = currentBorderStlye,
                    Color = currentColor,
                };
                mixBorders &= ~p;
            });

            borderAdded |= pos;
            borderRemoved &= ~pos;
            Invalidate();
        }
Example #3
0
 /// <summary>
 /// Create instance for BorderAddedEventArgs with specified range, 
 /// position of border and style of border.
 /// </summary>
 /// <param name="range"></param>
 /// <param name="pos"></param>
 /// <param name="style"></param>
 public RGBorderAddedEventArgs(ReoGridRange range, ReoGridBorderPos pos, ReoGridBorderStyle style)
     : base(range)
 {
     this.Pos = pos;
     this.Style = style;
 }
Example #4
0
            internal RGXmlBorder(int row, int col, ReoGridBorderStyle borderStyle, string pos)
            {
                this.row = row;
                this.col = col;
                this.pos = pos;

                color = TextFormatHelper.EncodeColor(borderStyle.Color);
                style = borderStyle.Style.ToString();
            }
Example #5
0
 internal RGXmlHBorder(int row, int col, int cols, ReoGridBorderStyle borderStyle, HBorderOwnerPosition pos)
     : base(row, col, borderStyle, XmlFileFormatHelper.EncodeHBorderOwnerPos(pos))
 {
     this.cols = cols;
 }
Example #6
0
 internal RGXmlVBorder(int row, int col, int rows, ReoGridBorderStyle borderStyle, VBorderOwnerPosition pos)
     : base(row, col, borderStyle, XmlFileFormatHelper.EncodeVBorderOwnerPos(pos))
 {
     this.rows = rows;
 }