/// <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) }) { }
public void CheckBorderStyle(ReoGridBorderPos pos) { ProcessBorderStyles(pos, p => { borders[p] = new ReoGridBorderStyle { Style = currentBorderStlye, Color = currentColor, }; mixBorders &= ~p; }); borderAdded |= pos; borderRemoved &= ~pos; Invalidate(); }
/// <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; }
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(); }
internal RGXmlHBorder(int row, int col, int cols, ReoGridBorderStyle borderStyle, HBorderOwnerPosition pos) : base(row, col, borderStyle, XmlFileFormatHelper.EncodeHBorderOwnerPos(pos)) { this.cols = cols; }
internal RGXmlVBorder(int row, int col, int rows, ReoGridBorderStyle borderStyle, VBorderOwnerPosition pos) : base(row, col, borderStyle, XmlFileFormatHelper.EncodeVBorderOwnerPos(pos)) { this.rows = rows; }