private void SetBorderColor(BorderPropertiesType b, Color val) { b.Color = val; if (_stylable != null) { _stylable.Style.Border = this; } }
private ExcelCellBorderStyle GetBorderStyle(BorderPropertiesType border) { return(new ExcelCellBorderStyle { Color = ToExcelColor(border?.Color), BorderType = border?.Style == null ? ExcelBorderType.None : ToExcelBorderType(border.Style) }); }
private void SetBorderStyle(BorderPropertiesType b, ExcelBorderStyleValues val) { b.Style = (EnumValue <BorderStyleValues>)((BorderStyleValues)(int)val); if (this._stylable != null) { this._stylable.Style.Border = this; } }
private void SetBorderStyle(BorderPropertiesType b, ExcelBorderStyleValues val) { b.Style = (BorderStyleValues)val; if (_stylable != null) { _stylable.Style.Border = this; } }
///<summary> ///Sets an individual border's color and style. ///</summary> protected internal void ClearBorder(BorderPropertiesType item) { if (item.Color == null) { item.Color = new Color(); } item.Color.Theme = null; item.Color.Rgb = null; item.Style = new EnumValue <BorderStyleValues>(BorderStyleValues.None); }
///<summary> ///Sets an individual border's color and style. ///</summary> protected void SetBorder(BorderPropertiesType item, string rgb, BorderStyleValues style) { if (item.Color == null) { item.Color = new Color(); } item.Color.Theme = null; item.Color.Rgb = "FF" + rgb; item.Style = new EnumValue <BorderStyleValues>(style); }
internal SpreadsheetStyle SetBorder(BorderPropertiesType item, string rgb, BorderStyleValues style) { if (rgb != null) { item.Color = new Color() { Rgb = GetRgb(rgb) }; item.Style = style; } return(this); }
public static bool Compare(this BorderPropertiesType thisValue, BorderPropertiesType border) { if (!Compare(thisValue.Style, border.Style)) { return(false); } if (!Compare(thisValue.Color, border.Color)) { return(false); } return(true); //both null value }
private Color GetBorderColor(BorderPropertiesType b) { return(b.Color); }
private ExcelBorderStyleValues GetBorderStyle(BorderPropertiesType b) { return((ExcelBorderStyleValues)b.Style.Value); }